Search code examples
job-schedulingazure-batch

Azure Batch: Frequency based scheduling


How can I configure a frequency based schedule on Azure Batch Service (ex. hourly/daily/weekly job)?

I suppose Azure Batch Service has job scheduling features, but couldn't find a time based scheduling descriptions, although I found this page that describes dependency based scheduling based on task dependency graph.


Solution

  • Preface: since you didn't specify an SDK language for context, I will reference the REST API documentation for the answer.

    You will want to use Job Schedules to schedule recurrences. You will need to define, at the minimum, the following:

    1. Specify a Schedule which will determine how often a job will run along with constraints on when it can run.
    2. Specify a Job Specification as per normal (which can include what the job's target pool or autopool, constraints, job manager task if required, job prep/release if required, etc).