Symbiote\QueuedJobs\Services\QueuedJobService::initialiseJob
Prepares the given jobDescriptor for execution. Returns the job that will actually be run in a state ready for executing.
Note that this is called each time a job is picked up to be executed from the cron job - meaning that jobs that are paused and restarted will have 'setup()' called on them again, so your job MUST detect that and act accordingly.
Signature
protected function initialiseJob(QueuedJobDescriptor
$jobDescriptor )
Parameters
$jobDescriptor
— Symbiote\QueuedJobs\DataObjects\QueuedJobDescriptor
The Job descriptor of a job to prepare for execution
Returns
- QueuedJob|boolean