Skip to content

Commit c173756

Browse files
authored
Merge pull request #433 from serverlessworkflow/fix-task-cloud-event-status
Fixed the `WorkflowExecutionContext` to properly set the status of an ended task
2 parents 3db17a4 + db887a6 commit c173756

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)