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.

Azure function time trigger not resuming unless I visit the azure portal

See original GitHub issue

Investigative information

  • Timestamp: 2018-02-13T15:35:00.0076347+00:00 (successfull run) / 2018-02-14T08:02:05.0220800+00:00 (next successfull run … no activity in between, this is supposed to be an every 5 mins trigger)
  • Function App version (1.0 or 2.0-beta): Runtime version: 1.0.11535.0 (~1)
  • Function App name: FdriverFunctionsDemo
  • Function name(s) (as appropriate): PullXmlFilesTimer
  • Invocation ID: 5a170853-ea00-456f-9ae0-b151454f2048 / c16cf1c2-cdf2-49b1-92ee-209806694ce1
  • Region: West-Europe

Repro steps

I have a timer triggered azure function with schedule = “0 */5 * * * *”, the function is supposed to run every 5 minutes. It stops after a few invocations… I don’t see any error in the various available logs. …

Expected behavior

The function should run every 5 minutes

Actual behavior

The function runs a few times and then stops. There are no new invocations unless I manually go the azure portal website and look at the azure function… then it starts for a few rounds and stops again.

image

Known workarounds

N/A

Related information

  • Programming language used : C#
  • Links to source : Not publically available
  • Bindings used
    {
      "type": "timerTrigger",
      "schedule": "0 */5 * * * *",
      "useMonitor": true,
      "runOnStartup": false,
      "name": "myTimer"
    }
  ]

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:38 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
ConnorMcMahoncommented, Mar 6, 2018

I have filed an issue here to make it so we are a little more lenient with that host.json file.

@vludax I suspect that our internal keep-alive logic for HttpTriggers is a little bit different than our keep-alive logic for TimerTriggers. At an HTTP request every 5 minutes, you function application was always kept alive, so even though the trigger was never synchronized, since your application was never recycled, that worked out fine. I recommend manually synchronizing once you remove the comments from host.json, because until your http trigger is synchronized, if your application is ever recycled, it may stop triggering on HTTP requests until the application is loaded up again.

I am going to close this issue for now, as the original post has been addressed, and we seem to have resolved the other issues that have come up here. If anyone has any issues with triggers not firing, your host.json is valid and the function was deployed using one of the supported methods detailed in this thread, please open up a new issue and we will investigate it there.

0reactions
alrodcommented, Aug 20, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure function (Time trigger) is triggering only when ...
1 Answer 1 ... Yes it is running every two hours, only when my Azure portal is open. As soon as I lose...
Read more >
Azure Timer Trigger not firing - Microsoft Q&A
The most common cause for Azure Functions not getting triggered is that triggers are not synced properly. You can sync triggers in one...
Read more >
Timer trigger for Azure Functions
A timer trigger lets you run a function on a schedule. This is reference information for Azure Functions developers. If you're new to...
Read more >
Long Interval Timer Trigger Function not firing on ...
Background: I have an Azure Function timer trigger that kicks off a durable function orchestration. This goes on to check if a file...
Read more >
Azure Functions TimeTrigger do not fire - Microsoft Q&A
Hi I have a function app that has multiple triggers, each with different type of triggers. But the timetriggers are not firing.
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