aboutsummaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/cron.php b/cron.php
index e39c998ad5d..f6ca95fe226 100644
--- a/cron.php
+++ b/cron.php
@@ -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;