Azure ignores schedule settings for WebJob

I deployed the proposed method with WebJob using Visual Studio, right-click on the console project, select "Publish as Azure Webjob" and go through the settings. I selected a planned plan that caused the creation of a file " webjob-publish-settings.json" in the Properties folder with the following contents:

{
  "$schema": "http://schemastore.org/schemas/json/webjob-publish-settings.json",
  "webJobName": "TestCredentials2",
  "startTime": "2016-04-05T01:00:00+01:00",
  "endTime": "2016-04-12T00:00:00+01:00",
  "jobRecurrenceFrequency": "Minute",
  "interval": 3,
  "runMode": "Scheduled"
}

During deployment, the webjob is in the "On Demand" state. Webjob starts once when I start it manually from Azure Portal, but does not restart it automatically.

I also tried adding " settings.job" to the root of my project (with the setting "Copy if new"):

{ "schedule": "0 /5 * * * *"}

- , .

+4
1

settings.job. :

1. Create a settings.job with the content in the question
2. select Build Action "Content" for that file
3. Select "Copy if newer"
4. Delete the generated "Properties/webjob-publish-actions.json"
5. Re-Publish the Project, chose "On Demand" instead of a schedule plan 

webjob-publish-actions.json:

{
      "$schema": "http://schemastore.org/schemas/json/webjob-publish-settings.json",
      "webJobName": "MyTimer",
      "startTime": null,
      "endTime": null,
      "jobRecurrenceFrequency": null,
      "interval": null,
      "runMode": "OnDemand"
    }

.

+10

All Articles