Azure / Azure/Azure-Functions

Azure Functions Timer Trigger with Sharing Storage Triggered by All Instances

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

Description

Hi, Team.

I'm looking at this document and following the instruction:

https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-timer#function-apps-sharing-storage

Here's the context:

* A developer from the field asked me if we can scale out or run multiple timer trigger instances or not.
* I thought it would be theoretically possible as I know the document above.
* I started a PoC for this:
* I have one Geo-Redundant Storage Account (Australia Southeast as Primary and Australia East as Secondary)
* I have two Azure Function instances - one in Australia Southeast and the other in Australia East
* Both instances are pointing to the Geo-Redundant Storage Account
* I added the "AzureFunctionsWebHost__hostid" key to the App Settings blade of both function instances with the same GUID

Here's my question:

I'm watching the console logs from both instances. But they are triggered at the same time. According to the document, only one instance should be triggered.

![image](https://user-images.githubusercontent.com/1538528/67930665-5eb55b80-fc14-11e9-89d9-892d3f012ca3.png)

I wonder if I correctly understand the document or not. If I missed something, could you please let me know?

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.