Skip to content

Commit

Permalink
Fixed composer.lock restore when task is deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Nov 15, 2021
1 parent 16b2e06 commit c996b93
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/Task/TaskManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ public function deleteTask()
$this->logger->info('Deleting task', ['name' => $task->getName(), 'class' => \get_class($task)]);
}

$config->setCancelled();
$status = $task->update($config);
$status = $task->create($config);

if ($status->isActive() || !$task->delete($config)) {
throw new \RuntimeException('Active task cannot be deleted');
Expand Down

0 comments on commit c996b93

Please sign in to comment.