Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Webjobs ignores CRON expression

I have a program that I want to run once per day. I put my program.exe and my settings.job in one zip file and uploaded it. I sat the running mode to continuous. My settings.job looks like:

{
   "schedule": "0 0 8 * * *"
}

My plan was that it runs every day at 8 but instead it runs repeated all the time over and over again. What did I do wrong?

like image 538
Sknecht Avatar asked May 24 '16 07:05

Sknecht


1 Answers

You webjob running mode should be On Demand:

  • Create a scheduled WebJob using a CRON expression

From the documentation :

  • You still need Always On setting to be enabled on the app.
  • Note: when deploying a WebJob from Visual Studio, make sure to mark your settings.job file properties as 'Copy if newer'.
like image 97
Thomas Avatar answered Sep 26 '22 17:09

Thomas