question

Ketan-7786 avatar image
0 Votes"
Ketan-7786 asked MayankBargali-MSFT answered

Azure timmer trigger function trigger twice just for sometime

Azure trimmer trigger function trigger twice and it creates duplicate entry into service bus queue the main challenge is this happen just for sometime

corn expression : 0/30 12-13

azure-functionsazure-service-bus
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

on 18 th feb around 8 : 38 :04 it trigger for first time after 54 second it trigger for second time around 8:38:58 this trigger twice for same message (i have checked logs in Appinsight), i will check in function app timer trigger and come back to you

0 Votes 0 ·
MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered

Hi @YogeshVEDPATHAK-7786

If you have enabled the application insights. Can you navigate to your function app timmer trigger --> Monitor (under Developer) --> Invocations and verify if you see the function was triggered multiple times for the same timeframe when you observed this behavior?

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

On Prod Env I have only Read access

0 Votes 0 ·
nasreen-akter avatar image
0 Votes"
nasreen-akter answered

Hi @YogeshVEDPATHAK-7786,

Cron Expression should have 6 parts. Would you please change the Cron Expression e.g., 0 0/30 12-13 or 0 0 0/30 12-13 * (not sure what's your requirement). Please check the link below:

https://arminreiter.com/2017/02/azure-functions-time-trigger-cron-cheat-sheet/



If the above response is helpful, please accept as answer and up-vote it. Thanks!

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.