Time triggered azure function to trigger immediately after deploy

后端 未结 1 960
故里飘歌
故里飘歌 2021-01-20 17:08

I have a time-triggered azure function triggered every 1 hour. My requirement is that, it should get triggered every hour but once also immediately after the deployment ? Is

相关标签:
1条回答
  • 2021-01-20 17:32

    There isn't something directly tied to the deployment. The runOnStartup setting, documented here, triggers your function when the runtime starts, but won't cause the runtime to start as a result of a deployment.

    Your best option would likely be to customize your deployment, as documented here, and invoke your function (by issuing an HTTP request) once the deployment completes. You can share the code and have an HTTP triggered function that uses the same logic as the timer function that runs on a schedule.

    0 讨论(0)
提交回复
热议问题