Skip to content

Commit

Permalink
Adding back in fix for WebJobs Extension Queue Length and updated cha…
Browse files Browse the repository at this point in the history
…ngelog (Azure#45968)
  • Loading branch information
amnguye authored Sep 13, 2024
1 parent 2051661 commit a11418b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public async Task<int> GetQueueLengthAsync()
{
try
{
QueueProperties queueProperties = await _queue.GetPropertiesAsync().ConfigureAwait(false);
return queueProperties.ApproximateMessagesCount;
QueueTriggerMetrics queueMetrics = await GetMetricsAsync().ConfigureAwait(false);
return queueMetrics.QueueLength;
}
catch (RequestFailedException ex)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,17 @@

## 5.4.0-beta.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed
- When grabbing Queue Metrics for amount of messages, will now use the QueueTriggerMetrics.QueueLength instead of the ApproximateMessagesCount for less stale metrics.

### Other Changes
- Improvement in logging exceptions when retrieving queue metrics.

## 5.3.1 (2024-07-17)

### Bugs Fixed
- Rely on PeekMessagesAsync when calculating message queue length
- Fixing target base scale instance concurrency for queues
- When grabbing Queue Metrics for amount of messages, will now use the QueueTriggerMetrics.QueueLength instead of the ApproximateMessagesCount for less stale metrics.

## 5.3.0 (2024-04-18)
- Includes all features from 5.3.0-beta.1.
Expand Down

0 comments on commit a11418b

Please sign in to comment.