Skip to content

Commit

Permalink
Await the PrepareAllSteps()
Browse files Browse the repository at this point in the history
  • Loading branch information
einari committed Jan 22, 2025
1 parent d08444d commit ef6b33c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Kernel/Grains/Jobs/Job.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public async Task<Result<JobError>> Start(TRequest request)
var grainId = this.GetGrainId();
var tcs = new TaskCompletionSource<IImmutableList<JobStepDetails>>(TaskCreationOptions.RunContinuationsAsynchronously);

PrepareAllSteps(request, tcs);
await PrepareAllSteps(request, tcs);
#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
tcs.Task.ContinueWith(
async getPreparedJobSteps =>
Expand Down

0 comments on commit ef6b33c

Please sign in to comment.