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 2023-05-03 12:51:11 +07:00 committed by GitHub
commit 7a7578cb86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

@ -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;
}
}