Schedules
Start an automation on a cron schedule, for example to look for work and create tasks.
A schedule starts an automation at set times. The automation run has no task, so schedules suit jobs that look across the repository and create tasks for what they find, such as a weekly sweep for outdated docs.
Add a schedule
Section titled “Add a schedule”Add a schedule trigger with a cron expression:
apiVersion: v2kind: Automationname: Weekly docs sweeptriggers: - uses: schedule config: cron: "0 9 * * 1" timezone: "1"steps: - name: Find outdated docs prompt: | Compare the README and the docs folder with the code. For each outdated page, create a task that says what is wrong, with a link to the file. Create at most three tasks.This automation runs every Monday at 09:00, one hour ahead of UTC. Put it in Backlog, where new tasks start. Apply it with Workspace as code, or choose the Schedule trigger when you create the automation on the board.
Cron and time zone
Section titled “Cron and time zone”crontakes five fields, or six with seconds first.timezoneis a UTC offset in hours, from-12to14, such as"5.5". It defaults to0, which is UTC. The offset is fixed, so it doesn’t follow daylight saving time.
Create tasks without duplicates
Section titled “Create tasks without duplicates”An agent creates a task with the create_task tool, and a Bash step with superplane task create. Give each task a link to what it’s about. If a task that isn’t closed already has that link, SuperPlane returns that task instead of creating another one, so a weekly sweep doesn’t repeat itself.
Ask the agent for a limit, such as at most three tasks, so one automation run doesn’t fill the board.
- An automation can have several schedules.
- Schedules can’t share an automation with task triggers, such as Task enters stage.
- Schedule automations run in the workspace, without a task. See Triggers.