Browse Source

Merge pull request #37937 from nextcloud/artonge/feat/remove_non_existing_jobs

Remove job from oc_jobs when the file is not findable
pull/38045/head
Arthur Schiwon 3 years ago
committed by GitHub
parent
commit
7a7578cb86
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      lib/private/BackgroundJob/JobList.php

3
lib/private/BackgroundJob/JobList.php

@ -307,7 +307,8 @@ class JobList implements IJobList {
$class = $row['class'];
$job = new $class();
} else {
// job from disabled app or old version of an app, no need to do anything
// Remove job from disabled app or old version of an app
$this->removeById($row['id']);
return null;
}
}

Loading…
Cancel
Save