Merge pull request #42305 from nextcloud/fix/reset-last-run-joblist

fix(joblist): also reset last_run timestamp on updating an existing job
pull/42320/head
Joas Schilling 2 years ago committed by GitHub
commit a29b0b4ba5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      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))));
}

Loading…
Cancel
Save