Merge branch 'main' into feature/4835

This commit is contained in:
Sipke Schoorstra 2025-01-28 11:17:14 +01:00
commit 633464eb04
No known key found for this signature in database
GPG key ID: 5C10502B28A4268F

View file

@ -520,10 +520,10 @@ public partial class WorkflowExecutionContext : IExecutionContext
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();
}
}
@ -610,7 +610,7 @@ public partial class WorkflowExecutionContext : IExecutionContext
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()
{