Skip to content

Commit

Permalink
#103 maintain old processes on status when deleting job
Browse files Browse the repository at this point in the history
  • Loading branch information
s-aebischer committed Dec 2, 2022
1 parent fb1fc8a commit 8135ea0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/Job/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ public function deleteOne(ResourceNamespaceInterface $namespace, string $name):
$tasks = $this->scheduler->getJobs([
'data.namespace' => $namespace->getName(),
'data.job' => $name,
'status' => ['$lt' => 3],
]);

foreach ($tasks as $task) {
Expand Down

0 comments on commit 8135ea0

Please sign in to comment.