Skip to content

Commit 37a9de8

Browse files
committed
fix(Operator): Fixed the WorkflowInstanceHandler n,ot to use otpimistic concurrency when updating workflow instance status
Signed-off-by: Charles d'Avernas <[email protected]>
1 parent 31da2e6 commit 37a9de8

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)