Skip to content

Commit

Permalink
Update OCP
Browse files Browse the repository at this point in the history
  • Loading branch information
nextcloud-command committed Oct 3, 2023
1 parent 6ab43b9 commit 6812e8a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions OCP/BackgroundJob/IJobList.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,19 @@ interface IJobList {
*/
public function add($job, $argument = null): void;

/**
* Add a job to the list but only run it after the given timestamp
*
* For cron background jobs this means the job will likely run shortly after the timestamp
* has been reached. For ajax background jobs the job might only run when users are active
* on the instance again.
*
* @param class-string<IJob> $job
* @param mixed $argument The serializable argument to be passed to $job->run() when the job is executed
* @since 28.0.0
*/
public function scheduleAfter(string $job, int $runAfter, $argument = null): void;

/**
* Remove a job from the list
*
Expand Down

0 comments on commit 6812e8a

Please sign in to comment.