Skip to content

Commit

Permalink
innitial commit (#913)
Browse files Browse the repository at this point in the history
Update GetMessageAsync log information, add the reason LeaseLost.
  • Loading branch information
nytian authored Jun 22, 2023
1 parent 73b48df commit 5fbfbfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DurableTask.AzureStorage/Messaging/ControlQueue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ await batch.ParallelForEachAsync(async delegate (QueueMessage queueMessage)
}
}

this.Release(CloseReason.Shutdown, $"ControlQueue GetMessagesAsync cancelled by: {(this.releaseCancellationToken.IsCancellationRequested ? "control queue released token cancelled" : "")} {(cancellationToken.IsCancellationRequested ? "shutdown token cancelled" : "")}");
this.Release(cancellationToken.IsCancellationRequested ? CloseReason.Shutdown : CloseReason.LeaseLost, $"ControlQueue GetMessagesAsync cancelled by: {(this.releaseCancellationToken.IsCancellationRequested ? "control queue released token cancelled" : "")} {(cancellationToken.IsCancellationRequested ? "shutdown token cancelled" : "")}");
return EmptyMessageList;
}
}
Expand Down

0 comments on commit 5fbfbfb

Please sign in to comment.