AI agent instructions
AI agent instructions
Cron Expressions
Schedules use the AWS EventBridge cron format: six space-separated fields, minutes first. This is not the five-field Unix crontab format.- Exactly one of
day-of-monthandday-of-weekmust be?; the other must be a real value. - Schedules fire in UTC.
rate(...)expressions such asrate(1 hour)are also accepted.
A five-field expression such as
0 9 * * * is rejected.
Variables
Every scheduled run receives the samevariables. They must supply every parameter of run() that has no default value, and must not include names that run() does not declare. A Function without parameters can use an empty object.
Create or Update a Schedule
Setting a schedule replaces the existing one, if any.Check a Schedule
The Function’s metadata (GET /functions/{function_id}, or fn.get() in TypeScript) includes:
schedule_cron: the expression, ornullwhen the Function is not scheduledschedule_variables: the variables passed to each scheduled runschedule_state:enabled,paused, ornullwhen there is no schedule
TypeScript
Paused Schedules
Notte pauses a schedule when its runs cannot succeed without your intervention, for example when your workspace runs out of credit or the Function is no longer active. A paused schedule keeps its expression and variables but stops firing, andschedule_state becomes paused.
To resume it, fix the cause and set the schedule again with the same request as above.
Delete a Schedule
Deleting the schedule stops future runs. The Function itself is unchanged and can still be invoked manually.Best Practices
- Match the frequency to how often the data actually changes; every run uses browser time and credits.
- Make runs idempotent so a repeated or overlapping run does no harm.
- Return structured results and raise on failure, so failed scheduled runs show up as
failedin the run history.
Next Steps
Invocations
Invoke Functions manually
Management
Monitor runs and manage versions
Creating Functions
Write schedulable Functions
Console
Configure schedules in the Console