Set Python schedule
fastero_set_python_scheduleRun a Python entrypoint repeatedly on a cron timetable, or change the one it has: an entrypoint has one schedule, and calling again replaces its cron and whether it is on. The cron expression takes 5 fields (minute hour day-of-month month day-of-week) or 6 with leading seconds, and runs in UTC — there is no per-schedule timezone; an expression the scheduler cannot run is refused. A scheduled run cannot be given parameters: it runs the entrypoint as it stands. Each run uses compute, and a failed one is reported to you by email and in the app. The entrypoint id comes from fastero_ensure_python_entrypoint or fastero_get_python_project. With emails or slackChannel, each successful scheduled run also sends the pictures it saved in outputs/ (PNG, JPEG, GIF or WebP) there; a run started by hand sends none. Left out, they stay as they are. Returns ok, triggerId, schedule (the cron as stored), and emails and slackChannel when set. It is the trigger py::, which fastero_list_triggers shows and fastero_disable_trigger pauses. To run once now, fastero_run_python_project; a notebook is scheduled with fastero_schedule_notebook. Owners, admins and editors of the project can set it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| emails | No | Who is emailed the pictures: up to 20 addresses, each belonging to a member of this organisation; an address outside it is refused. An empty list stops the emails. | |
| enabled | No | Whether the schedule starts running now. Defaults to true; pass false to create it paused. | |
| schedule | Yes | Cron expression in UTC, 5 or 6 fields. '0 9 * * 1' is 09:00 UTC each Monday. A 4-field value is read as day-of-week omitted. | |
| projectId | Yes | The project’s id, from fastero_list_projects. | |
| entrypointId | Yes | The entrypoint to run, e.g. 'main'. Returned by fastero_ensure_python_entrypoint. | |
| slackChannel | No | A Slack channel to post the pictures to, by name or id, which Fastero must be in: type /invite @Fastero there first. Slack must be connected in Fastero. '' stops the posts. | |
| pythonProjectId | Yes | A Python project’s id, from fastero_list_python_projects. |