Skip to content

Commit

Permalink
WIP on feature/4835
Browse files Browse the repository at this point in the history
  • Loading branch information
sfmskywalker committed Jan 28, 2025
1 parent e2a57ac commit 9a5181a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -517,10 +517,10 @@ internal void TransitionTo(WorkflowSubStatus subStatus)

if (Status == WorkflowStatus.Finished)
FinishedAt = UpdatedAt;

if (Status == WorkflowStatus.Finished || SubStatus == WorkflowSubStatus.Suspended)
{
foreach (var registration in _cancellationRegistrations)
foreach (var registration in _cancellationRegistrations)
registration.Dispose();
}
}
Expand Down Expand Up @@ -607,7 +607,7 @@ private WorkflowStatus GetMainStatus(WorkflowSubStatus subStatus) =>
WorkflowSubStatus.Suspended => WorkflowStatus.Running,
_ => throw new ArgumentOutOfRangeException(nameof(subStatus), subStatus, null)
};

// TODO: Check if we should not use the target subStatus here instead.
private bool ValidateStatusTransition()
{
Expand Down

0 comments on commit 9a5181a

Please sign in to comment.