mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Merge pull request #37937 from nextcloud/artonge/feat/remove_non_existing_jobs
Remove job from oc_jobs when the file is not findable
This commit is contained in:
commit
7a7578cb86
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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue