BUGFIX: Disabled tasks could appear as non-disabled

This commit is contained in:
Jeroen De Meerleer 2022-05-30 14:43:37 +02:00
parent f6b24804e6
commit 14446527a3
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ class JobRepository extends EntityRepository
$qb->expr()->lte('job.nextrun', ':timestamp'),
$qb->expr()->orX(
$qb->expr()->isNull('job.lastrun'),
$qb->expr()->gt('job.lastrun', ':timestamp')
$qb->expr()->lt('job.nextrun', 'job.lastrun')
),
$qb->expr()->in('job.running', [0,2])
)