Skip to content

Commit a19465f

Browse files
fix(joblist): also reset last_run timestamp on updating an existing job
Signed-off-by: Anna Larch <[email protected]>
1 parent 01fad10 commit a19465f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/private/BackgroundJob/JobList.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ public function add($job, $argument = null, int $firstCheck = null): void {
8888
$query->update('jobs')
8989
->set('reserved_at', $query->expr()->literal(0, IQueryBuilder::PARAM_INT))
9090
->set('last_checked', $query->createNamedParameter($firstCheck, IQueryBuilder::PARAM_INT))
91+
->set('last_run', $query->createNamedParameter(0, IQueryBuilder::PARAM_INT))
9192
->where($query->expr()->eq('class', $query->createNamedParameter($class)))
9293
->andWhere($query->expr()->eq('argument_hash', $query->createNamedParameter(md5($argumentJson))));
9394
}

0 commit comments

Comments
 (0)