Skip to content

Commit db887a6

Browse files
committed
fix(Runner): Fixed the WorkflowExecutionContext to properly set the status of an ended task
Signed-off-by: Charles d'Avernas <[email protected]>
1 parent 3db17a4 commit db887a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runner/Synapse.Runner/Services/WorkflowExecutionContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ await this.Api.Events.PublishAsync(new CloudEvent()
538538
{
539539
Workflow = this.Instance.GetQualifiedName(),
540540
Task = task.Reference,
541-
Status = this.Instance.Status!.Phase!,
541+
Status = task.Status!,
542542
EndedAt = run?.EndedAt ?? DateTimeOffset.Now
543543
}
544544
}, cancellationToken).ConfigureAwait(false);

0 commit comments

Comments
 (0)