Azure / Azure/Azure-Functions

[Premium] Azure Function app stops processing Storage Queue for > 10 hours. (Premium Elastic)

Open
#2,427 2 comments 1 reaction 0 assignees View on GitHub
premium-plan
Dominant language
PowerShell
Stars
1.1k
Forks
215
Avg merge
4h 2m
Merged PRs (30d)
1

Description

#### Investigative information

Please provide the following:

- Timestamp: Last invocation before pause, 2023-11-28T17:21:20.6908991Z. Next invocation after pause, 2023-11-29T07:07:10.7668843Z
Screenshot 2023-11-29 at 09 34 56

- Function App version: Python v2.0 Azure Function
- Function App name: thumbnailgenerator-app-westeurope-prod
- Function name(s) (as appropriate): thumbnailgenerator
- Invocation ID: Last invocation before pause, e02d25fe-3c28-4daf-9557-850774a5ecb3. Next invocation after pause, e02d25fe-3c28-4daf-9557-850774a5ecb3
- Region: West Europe

#### Expected behavior

The Azure Function is invoked when a message is added to the Azure Storage Queue that the function is bound to.

#### Actual behavior

The Azure Function stops being invoked for messages for ~10 hours for no observable reason. New messages are added to the queue in between the two invocations given above, but the messages remain unprocessed on the queue.

#### Known workarounds

Manually navigating to the Storage Queue and Function App in Azure Portal appears to trigger processing to continue.

Other than that manual workaround no not at this time.

#### Related information

Python
v2.0 model
Azure Storage Queue binding

The Azure Function is auto scaled down around the same time as the last invocation before the pause from 2 instances to 1. The Az function remains at 1 instance for the time period when it should be processing messages, before spiking up to 3 instances when it starts processing the backlog of messages.
Screenshot 2023-11-29 at 09 36 21

```[tasklist]
### Tasks
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.