Skip to content

Commit 31da2e6

Browse files
committed
fix(Operator): Fixed the WorkflowInstanceHandler which was using PatchAsync instead of PatchStatusAsync to patch the status of a workflow instance
Signed-off-by: Charles d'Avernas <[email protected]>
1 parent ac0f2e4 commit 31da2e6

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.PatchAsync<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(), original.Metadata.ResourceVersion, false, cancellationToken).ConfigureAwait(false);
233233
}
234234
catch (ConcurrencyException) when (attempt + 1 < maxRetries)
235235
{

0 commit comments

Comments
 (0)