diff options
author | Joas Schilling <coding@schilljs.com> | 2023-12-20 10:07:41 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-12-20 10:07:41 +0100 |
commit | 4cb5501a3f9adc0595377eafc597b2538c4000bf (patch) | |
tree | 9e2cd7b6153b0a0aacb2d8eaf0c63b83e4f9e80d /lib/private/BackgroundJob | |
parent | 66b2fd95d133611edec66a3f37d0555f482cf7ea (diff) | |
download | nextcloud-server-4cb5501a3f9adc0595377eafc597b2538c4000bf.tar.gz nextcloud-server-4cb5501a3f9adc0595377eafc597b2538c4000bf.zip |
fix(cron): Reset the reserved_at when force executing from CLI
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/BackgroundJob')
-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 3ec2e0af1b3..93d5cf74a20 100644 --- a/lib/private/BackgroundJob/JobList.php +++ b/lib/private/BackgroundJob/JobList.php @@ -392,6 +392,7 @@ class JobList implements IJobList { $query = $this->connection->getQueryBuilder(); $query->update('jobs') ->set('execution_duration', $query->createNamedParameter($timeTaken, IQueryBuilder::PARAM_INT)) + ->set('reserved_at', $query->createNamedParameter(0, IQueryBuilder::PARAM_INT)) ->where($query->expr()->eq('id', $query->createNamedParameter($job->getId(), IQueryBuilder::PARAM_INT))); $query->executeStatement(); } |