Schedule a Script
A 3-step recipe with Windmill. We can help you get access.
Recipe · 3 steps
Schedule a Script
with Windmill
Create a recurring cron schedule for an existing Windmill script.
- Read the script by path to confirm it exists before scheduling it.
- Create a cron schedule targeting the script. is_flow is false because the target is a script, and the schedule is enabled immediately.
- Read the schedule back to confirm it was registered with the expected cron expression and enabled state.
What you'll need to have ready
- token: Windmill API token presented as a Bearer credential.
- workspace: The Windmill workspace id.
- scriptPath: Path to the script the schedule should run.
- schedulePath: The unique path for the schedule (e.g. "u/admin/nightly").
- schedule: 6-field cron expression with seconds (e.g. "0 0 12 * * *").
- timezone: IANA timezone for the schedule (e.g. "UTC").
- args: The argument map passed to the scheduled script on each run.
For your developer
Arazzo workflow windmill:schedule-script, 3 operations: getScriptByPath → createSchedule → getSchedule. Specs on APIs.io.