question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Trigger function fails to execute at set intervals

See original GitHub issue

I have configured a NodeJS function to be triggered by a timer with the following CRON expression. The intention is for the function to be executed infinitely every 50 seconds.

*/50 * * * * *

However, I have noted that the trigger is not executed as expected. Here is the function execution log:

2016-06-30T19:34:52.109 Function completed (Success, Id=f1983e69-922c-47fd-b521-77f25fe7cad8)
2016-06-30T19:35:00.001 Function started (Id=98d3d465-2052-4413-a718-001e5c3679e3)
2016-06-30T19:35:00.111 Function completed (Success, Id=98d3d465-2052-4413-a718-001e5c3679e3)
2016-06-30T19:36:00.008 Function started (Id=8f1ab0b4-096e-4a10-9e39-4710a15974ac)
2016-06-30T19:36:00.102 Function completed (Success, Id=8f1ab0b4-096e-4a10-9e39-4710a15974ac)
2016-06-30T19:37:00.010 Function started (Id=329b400b-d6bf-468f-83a7-671b4724c052)
2016-06-30T19:37:00.088 Function completed (Success, Id=329b400b-d6bf-468f-83a7-671b4724c052)
2016-07-02T06:31:50.360 Function started (Id=dcb42d2b-6211-4f60-9339-8b7effa014de)
2016-07-02T06:32:08.065 Function completed (Success, Id=dcb42d2b-6211-4f60-9339-8b7effa014de)
2016-07-02T06:32:50.012 Function started (Id=7daff0ca-4237-40a5-abf6-1a105e97deac)
2016-07-02T06:32:50.121 Function completed (Success, Id=7daff0ca-4237-40a5-abf6-1a105e97deac)
2016-07-02T06:33:00.014 Function started (Id=72941597-1c6a-4f3e-89de-3d92c293c8d6)
2016-07-02T06:33:00.280 Function completed (Success, Id=72941597-1c6a-4f3e-89de-3d92c293c8d6)
2016-07-02T06:33:50.013 Function started (Id=7925044b-fcbe-4799-a404-6a1c451c8189)
2016-07-02T06:33:50.232 Function completed (Success, Id=7925044b-fcbe-4799-a404-6a1c451c8189)
2016-07-02T06:34:00.015 Function started (Id=85ab2f5f-881a-42da-b72e-05b57b73fba6)
2016-07-02T06:34:00.062 Function completed (Success, Id=85ab2f5f-881a-42da-b72e-05b57b73fba6)
2016-07-06T17:51:50.252 Function started (Id=c9ae8851-0636-4b7b-9d16-59e0db20f96d)

function.json

{
  "bindings": [
    {
      "schedule": "*/50 * * * * *",
      "name": "myTimer",
      "type": "timerTrigger",
      "direction": "in"
    }
  ],
  "disabled": false
}

Just wanted to ask for some help on diagnosing this issue.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
davidebbocommented, Jul 7, 2016

That can happen if your App is in Classic mode and you don’t have Always On enabled.

0reactions
murdockcrccommented, Jul 12, 2016

@mathewc ok, thanks for the pointer. My function only has one trigger, the timer itself

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Function, Timer Trigger suddenly stops firing
I have set up a Function App on Azure under an App Service Plan (Premium functions - ae north). The function app misbehaves...
Read more >
Is it possible to execute Azure function Timer trigger with ...
I want to execute Azure timer trigger with the sequential execution. Suppose i have C# Timer trigger with 5min interval. But function takes...
Read more >
Timer function doesn't get triggered every hour · Issue #456
Hi, I have an Azure function which gets triggered every hour (normally it should ... Trigger function fails to execute at set intervals...
Read more >
Azure function is not triggering on scheduled time #1534
Hello, adding few more info here: Our function app had two functions scheduled to run at 4.00 utc everyday. Yesterday, as a workaround...
Read more >
setInterval() global function - Web APIs | MDN
The setInterval() function is commonly used to set a delay for functions that are executed again and again, such as animations. You can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found