Skip to content

Commit

Permalink
[Storage] [Webjobs] Adding MaxDequeueCount to Format() (#37965)
Browse files Browse the repository at this point in the history
* Adding MaxDequeueCount to Format()

* PR Comment - update XML

* Undo last commit, updated BlobsOptions XML doc

* PR comment
  • Loading branch information
amnguye authored Aug 9, 2023
1 parent ced5079 commit a058b17
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,15 @@ public int MaxDegreeOfParallelism
}

/// <summary>
/// Gets or sets the number of times to try processing a message before moving it to the poison queue (where
/// possible).
/// Gets or sets the number of times to try processing a given blob before adding a message to a
/// storage queue named `webjobs-blobtrigger-poison`.
///
/// If not specified, will default to 5.
///
/// See <see href="https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-blob-trigger#poison-blobs">
/// Poison Blobs
/// </see>.
/// </summary>
/// <remarks>
/// Some queues do not have corresponding poison queues, and this property does not apply to them. Specifically,
/// there are no corresponding poison queues for any queue whose name already ends in "-poison" or any queue
/// whose name is already too long to add a "-poison" suffix.
/// </remarks>
public int MaxDequeueCount
{
get { return _maxDequeueCount; }
Expand All @@ -76,7 +77,8 @@ string IOptionsFormatter.Format()
{
JObject options = new JObject
{
{ nameof(MaxDegreeOfParallelism), MaxDegreeOfParallelism }
{ nameof(MaxDegreeOfParallelism), MaxDegreeOfParallelism },
{ nameof(MaxDequeueCount), MaxDequeueCount }
};

return options.ToString(Formatting.Indented);
Expand Down

0 comments on commit a058b17

Please sign in to comment.