Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-01-31 19:56:43 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2022-02-22 13:59:19 +0300
commitc8db7d35bfaeced6536b2794829f3cabd085ff31 (patch)
treedca551b60f8e38ca239efe4bfe5da48b7d2e7999 /lib/public/BackgroundJob/IJob.php
parent69e73cbdab6ba1c3ad8aab61e801c54accd0cfb9 (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.php9
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