Azure / Azure/azure-functions-host

1 minute azure function is not working as expected

Open
#7,398 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 12h
Merged PRs (30d)
38

Description

I have time trigger azure function - `[TimerTrigger("0 * * * * *")]`
This is expected to run every 1 minute at 00 seconds. But sometimes its get executed at previous 59 second itself.

I have tried the expression as `[TimerTrigger("0 */1 * * * *")]` - but still same behavior.

Please find attached screenshot of log prints.
Timer Azure function error

**One more observation is** - if I run timer function locally then it is executing as per expectation at every 1 minute 0 second.
Looks like the above reports issue is when I deploy it on Azure function app

**One more quick verification** I have done - is creating a new function app, creating time trigger function using portal - without any additional logic - only print - and that has also same issue.

![image](https://user-images.githubusercontent.com/12989060/118940025-edf8a000-b96d-11eb-9503-d03e10182d64.png)

**I have tried to print extra information of timer**

Timer Azure function error 3

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the [TimerTrigger("0 * * * * *")] function in a deployed Azure Function App and compare its timestamps with the local run and the attached logs. Done means determining why the deployed timer can execute at the previous 59-second mark and documenting or fixing the runtime behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
backend, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.