Scheduling

A schedule trigger runs a task on a cron expression or a fixed interval. For most cases, pass schedule= when creating the task. The sections below cover everything else.

Cron schedules

Attach a schedule to an existing task with triggers.create():

Python

Common cron patterns

PatternSchedule
0 9 * * *Daily at 9am
0 9 * * 1Every Monday at 9am
0 9 * * 1-5Weekdays at 9am
0 */6 * * *Every 6 hours
0 0 1 * *First of each month at midnight

Interval schedules

Pass interval_seconds instead of cron to run at a fixed interval:

Python

Email notifications

By default, m8tes emails you when a scheduled run completes. Disable it per task:

Python

email_notifications also works on tasks.create().

Managing triggers

Python

enabled also pauses and resumes app triggers. Webhook and email triggers are managed via the task webhook and agent email-inbox endpoints instead.

Next: Webhook Triggers · Email Inbox · Webhook Events

Was this page helpful?