Skip to content

Commit 3de7a69

Browse files
committed
fix failed status update
1 parent 9a0238c commit 3de7a69

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Actions/UpdateProcessStageAction.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,13 @@ public function execute(StageStateInterface $state, ?Job $job = null, ?Throwable
2626
{
2727
$attributes = [
2828
'state' => $state,
29-
'job_id' => $job?->getJobId() ?? $this->stage->job_id,
3029
'job_uuid' => $job?->uuid() ?? $this->stage->job_uuid,
3130
];
3231

32+
if ($state->value != StageState::Failed->value) {
33+
$attributes['job_id'] = $job?->getJobId() ?? $this->stage->job_id;
34+
}
35+
3336
if ($e) {
3437
$attributes['error'] = new StageError(
3538
$e->getMessage(),

0 commit comments

Comments
 (0)