Skip to content

Commit

Permalink
Fix task execution status update not saved
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-newvisibility authored May 31, 2023
1 parent 4aca1ef commit baea8eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Task/Runner/TaskRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ private function hasPassed(TaskExecutionInterface $execution, $result)
new TaskExecutionEvent($execution->getTask(), $execution)
);

$this->taskExecutionRepository->save($execution);

return $execution;
}

Expand All @@ -187,6 +189,8 @@ private function hasFailed(TaskExecutionInterface $execution, \Exception $except
new TaskExecutionEvent($execution->getTask(), $execution)
);

$this->taskExecutionRepository->save($execution);

return $execution;
}

Expand Down

0 comments on commit baea8eb

Please sign in to comment.