- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2025 06:57 AM
Hey @bricks3
If you’re looking to schedule a workflow to run hourly using Python, here’s some clarification and guidance:
To create and schedule a new workflow programmatically, you should use the API.
If you want to create a new job and include the hourly schedule, use this:
POST/api/2.2/jobs/create
This lets you define the job and its scheduling in one go.
If the job already exists and you simply want to add or modify the schedule, use this:
POST /api/2.2/jobs/update
This endpoint allows you to update an existing job
The scheduling configuration uses Quartz cron expressions. For an hourly schedule, you can use:
"schedule": { "quartz_cron_expression": "20 30 * * * ?", "timezone_id": "Europe/London", "pause_status": "UNPAUSED" }
If you’re using the Databricks UI:
Go to Workflows, and then in the right panel click “Schedule and Workflows”. There you can select the Schedule interval and configure it to run hourly, daily, etc., using the graphical interface.
Hope this helps, 🙂
Isi