Sim
Well-known member
Loving the resumable job functionality in XF2 - especially the ability to have a job "sleep" for a while by setting the continueDate.
Would be even more fun to use if we had a function in
FYI - using this functionality to handle large batch jobs involving calls to 3rd party web services where there is the potential to be rate limited - being able to delay resumption of processing is very useful.
Would be even more fun to use if we had a function in
XF\Job\AbstractJob
called something like resumeLater()
, for example:
PHP:
public function resumeLater($timestamp)
{
$job = $this->resume();
$job->continueDate = $timestamp;
return $job;
}
FYI - using this functionality to handle large batch jobs involving calls to 3rd party web services where there is the potential to be rate limited - being able to delay resumption of processing is very useful.
Last edited:
Upvote
3