diff options
Diffstat (limited to 'cron.php')
-rw-r--r-- | cron.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -160,7 +160,8 @@ try { $endTime = time() + 14 * 60; $executedJobs = []; - while ($job = $jobList->getNext($onlyTimeSensitive)) { + $jobClass = isset($argv[1]) ? $argv[1] : null; + while ($job = $jobList->getNext($onlyTimeSensitive, $jobClass)) { if (isset($executedJobs[$job->getId()])) { $jobList->unlockJob($job); break; |