diff --git a/lib/private/BackgroundJob/JobList.php b/lib/private/BackgroundJob/JobList.php index fbeee1f56e94c..3cdfee5113890 100644 --- a/lib/private/BackgroundJob/JobList.php +++ b/lib/private/BackgroundJob/JobList.php @@ -307,7 +307,8 @@ private function buildJob(array $row): ?IJob { $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; } }