Sankar Azad
Sankar Azad

Reputation: 31

Scheduling a job in databricks Azure

I want to schedule a databricks job that runs every day at 5:00 AM, 8:30 AM and 9:00 PM. I am looking for cron syntax.

Upvotes: 1

Views: 1022

Answers (1)

Aswin
Aswin

Reputation: 7156

  • Create a jobs in the workflows item.

enter image description here

  • Create a new job

enter image description here

  • Provide required inputs to a create job for Notebook.

enter image description here

Schedule a time to trigger the notebook in Edit Schedule

enter image description here

  • Click on scheduled trigger type to schedule the time, provide 0 0 5,21 ? * * as CRON syntax to run at 5:00AM and 9:00PM.

enter image description here

  • Create another new job to trigger the notebook at 8:30AM, schedule 0 30 8 ? * * as CRON syntax.

enter image description here enter image description here

  • Now the two jobs were run at expected times i.e 5:00AM, 8:30AM and 9:00PM. enter image description here

Minutes must be same for all the timings to schedule a trigger to run the notebook with single job, as per the requirement there is no other option to run with single job we must go for two jobs.

Upvotes: 0

Related Questions