BUGFIX: Scheduled run always started 1 second too late

This commit is contained in:
Jeroen De Meerleer 2023-01-11 09:11:23 +01:00
parent 21f65e2480
commit 45ba3c6ce2
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ class JobRepository extends EntityRepository
->orWhere(
$qb->expr()->andX(
$qb->expr()->notIn('job.running', [0,1,2]),
$qb->expr()->lt('job.running', ':timestamp')
$qb->expr()->lte('job.running', ':timestamp')
)
)
->orWhere('job.running = 2')