Symbiote\QueuedJobs\Services\QueuedJobService::checkJobHealth
Runs an explicit check on all currently running jobs to make sure their "processed" count is incrementing between each run. If it's not, then we need to flag it as paused due to an error.
This typically happens when a PHP fatal error is thrown, which can't be picked up by the error handler or exception checker; in this case, we detect these stalled jobs later and fix (try) to fix them This function returns the IDs of stalled and broken jobs this information can be used to implement some custom follow up actions such as sending email reports
Signature
public function checkJobHealth([int
$queue = NULL] )
Parameters
$queue
— int- The queue to check against
Returns
- array
- stalled job and broken job IDs