Skip to content

Commit 4f4a314

Browse files
authored
Merge pull request #547 from serverlessworkflow/fix-workflow-instance-status-update
Fixed the `WorkflowInstanceHandler` n,ot to use otpimistic concurrency when updating workflow instance status
2 parents 31da2e6 + 37a9de8 commit 4f4a314

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/operator/Synapse.Operator/Services/WorkflowInstanceHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ protected virtual async Task UpdateWorkflowInstanceStatusAsync(Action<WorkflowIn
229229
updated.Status ??= new();
230230
statusUpdate(updated.Status);
231231
var patch = JsonPatchUtility.CreateJsonPatchFromDiff(original, updated);
232-
await this.Resources.PatchStatusAsync<WorkflowInstance>(new Patch(PatchType.JsonPatch, patch), updated.GetName(), updated.GetNamespace(), original.Metadata.ResourceVersion, false, cancellationToken).ConfigureAwait(false);
232+
await this.Resources.PatchStatusAsync<WorkflowInstance>(new Patch(PatchType.JsonPatch, patch), updated.GetName(), updated.GetNamespace(), null, false, cancellationToken).ConfigureAwait(false);
233233
}
234234
catch (ConcurrencyException) when (attempt + 1 < maxRetries)
235235
{

0 commit comments

Comments
 (0)