Skip to content

Commit 7a7578c

Browse files
authored
Merge pull request #37937 from nextcloud/artonge/feat/remove_non_existing_jobs
Remove job from oc_jobs when the file is not findable
2 parents 9ace8e5 + 8ad2f34 commit 7a7578c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/private/BackgroundJob/JobList.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,8 @@ private function buildJob(array $row): ?IJob {
307307
$class = $row['class'];
308308
$job = new $class();
309309
} else {
310-
// job from disabled app or old version of an app, no need to do anything
310+
// Remove job from disabled app or old version of an app
311+
$this->removeById($row['id']);
311312
return null;
312313
}
313314
}

0 commit comments

Comments
 (0)