diff options
author | Joas Schilling <coding@schilljs.com> | 2022-01-31 19:56:43 +0300 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2022-02-22 13:59:19 +0300 |
commit | c8db7d35bfaeced6536b2794829f3cabd085ff31 (patch) | |
tree | dca551b60f8e38ca239efe4bfe5da48b7d2e7999 /lib/public/BackgroundJob/IJob.php | |
parent | 69e73cbdab6ba1c3ad8aab61e801c54accd0cfb9 (diff) |
Allow apps to specify if their background job can be delayed
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/BackgroundJob/IJob.php')
-rw-r--r-- | lib/public/BackgroundJob/IJob.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/public/BackgroundJob/IJob.php b/lib/public/BackgroundJob/IJob.php index 341ae2ac545..3c2da42bf88 100644 --- a/lib/public/BackgroundJob/IJob.php +++ b/lib/public/BackgroundJob/IJob.php @@ -35,6 +35,15 @@ use OCP\ILogger; */ interface IJob { /** + * @since 24.0.0 + */ + public const TIME_INSENSITIVE = 0; + /** + * @since 24.0.0 + */ + public const TIME_SENSITIVE = 1; + + /** * Run the background job with the registered argument * * @param IJobList $jobList The job list that manages the state of this job |