From a058b17daa61b31c4a2f11e3aa2f42b54175c72d Mon Sep 17 00:00:00 2001 From: Amanda Nguyen <48961492+amnguye@users.noreply.github.com> Date: Wed, 9 Aug 2023 15:09:45 -0700 Subject: [PATCH] [Storage] [Webjobs] Adding MaxDequeueCount to Format() (#37965) * Adding MaxDequeueCount to Format() * PR Comment - update XML * Undo last commit, updated BlobsOptions XML doc * PR comment --- .../src/Config/BlobsOptions.cs | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/src/Config/BlobsOptions.cs b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/src/Config/BlobsOptions.cs index 9aacfa444ed7a..2ca9d224dda1f 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/src/Config/BlobsOptions.cs +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/src/Config/BlobsOptions.cs @@ -47,14 +47,15 @@ public int MaxDegreeOfParallelism } /// - /// 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 + /// Poison Blobs + /// . /// - /// - /// 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. - /// public int MaxDequeueCount { get { return _maxDequeueCount; } @@ -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);