diff options
author | Anna Larch <anna@nextcloud.com> | 2023-12-15 11:49:51 +0100 |
---|---|---|
committer | Anna <anna@nextcloud.com> | 2023-12-18 10:26:48 +0100 |
commit | 7d90fb820945c2e0774c25b429853d3e2fb32d1c (patch) | |
tree | 61ae2217cdb60dbb2a39f0da3f04a501904e2591 | |
parent | 6146ddd06cd00eff0f89fa2a28cce37c4ba84a8d (diff) | |
download | nextcloud-server-7d90fb820945c2e0774c25b429853d3e2fb32d1c.tar.gz nextcloud-server-7d90fb820945c2e0774c25b429853d3e2fb32d1c.zip |
fix(joblist): also reset last_run timestamp on updating an existing job
Signed-off-by: Anna Larch <anna@nextcloud.com>
-rw-r--r-- | lib/private/BackgroundJob/JobList.php | 1 |
1 files changed, 1 insertions, 0 deletions
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)))); } |