Skip to content

Commit

Permalink
Merge pull request #6282 from elsa-workflows/perf/local-runtime-perf-…
Browse files Browse the repository at this point in the history
…degradation

Update workflow creation to use async commit method
  • Loading branch information
sfmskywalker authored Jan 10, 2025
2 parents ca4953d + 41d5160 commit 8e27cf5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public async Task<CreateWorkflowInstanceResponse> CreateInstanceAsync(CreateWork
Properties = request.Properties
};

workflowInstanceManager.CreateWorkflowInstance(workflowGraph.Workflow, options);
await workflowInstanceManager.CreateAndCommitWorkflowInstanceAsync(workflowGraph.Workflow, options, cancellationToken);
return new();
}

Expand Down

0 comments on commit 8e27cf5

Please sign in to comment.