BUGFIX: deferred jobs were not run

This commit is contained in:
Jeroen De Meerleer 2021-06-01 20:56:16 +02:00
parent 9da7c66f89
commit 157bb13567
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
1 changed files with 2 additions and 1 deletions

View File

@ -45,7 +45,8 @@ class Job extends Repository
AND (lastrun IS NULL OR lastrun > :timestamplastrun)
AND running IN (0,2)
)
OR (running NOT IN (0,1,2) AND running < :timestamprun)";
OR (running NOT IN (0,1,2) AND running < :timestamprun)
OR (running == 2)";
$jobsStmt = $this->dbcon->prepare($jobsSql);
$jobsRslt = $jobsStmt->executeQuery([':timestamp' => time(), ':timestamplastrun' => time(), ':timestamprun' => time()]);
$jobs = $jobsRslt->fetchAllAssociative();