From dc87c531b5487c7222da9d95b9e2d766346af048 Mon Sep 17 00:00:00 2001 From: Anna Larch Date: Fri, 15 Dec 2023 11:49:51 +0100 Subject: [PATCH] fix(joblist): also reset last_run timestamp on updating an existing job Signed-off-by: Anna Larch --- lib/private/BackgroundJob/JobList.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/private/BackgroundJob/JobList.php b/lib/private/BackgroundJob/JobList.php index ab7392522b2..3ec2e0af1b3 100644 --- a/lib/private/BackgroundJob/JobList.php +++ b/lib/private/BackgroundJob/JobList.php @@ -88,6 +88,7 @@ class JobList implements IJobList { $query->update('jobs') ->set('reserved_at', $query->expr()->literal(0, IQueryBuilder::PARAM_INT)) ->set('last_checked', $query->createNamedParameter($firstCheck, IQueryBuilder::PARAM_INT)) + ->set('last_run', $query->createNamedParameter(0, IQueryBuilder::PARAM_INT)) ->where($query->expr()->eq('class', $query->createNamedParameter($class))) ->andWhere($query->expr()->eq('argument_hash', $query->createNamedParameter(md5($argumentJson)))); } -- 2.39.5