Skip to content

Commit

Permalink
Merge pull request #433 from serverlessworkflow/fix-task-cloud-event-…
Browse files Browse the repository at this point in the history
…status

Fixed the `WorkflowExecutionContext` to properly set the status of an ended task
  • Loading branch information
cdavernas authored Oct 21, 2024
2 parents 3db17a4 + db887a6 commit c173756
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ await this.Api.Events.PublishAsync(new CloudEvent()
{
Workflow = this.Instance.GetQualifiedName(),
Task = task.Reference,
Status = this.Instance.Status!.Phase!,
Status = task.Status!,
EndedAt = run?.EndedAt ?? DateTimeOffset.Now
}
}, cancellationToken).ConfigureAwait(false);
Expand Down

0 comments on commit c173756

Please sign in to comment.