Schedule types
Every schedule has atype and a value that together define when it fires:
cron: recurring.valueis a 5-field cron expression (e.g.0 8 * * 1-5for 8am on weekdays). Cron granularity is one minute.at: one-off.valueis an RFC 3339 datetime (e.g.2026-07-01T09:00:00Z). The schedule fires once, then deletes itself.sleep: one-off.valueis a duration from now (e.g.2h,30m,7d). On creation it is resolved to anatschedule, so a createdsleepis returned withtype: atand a concrete datetime.
at and sleep) are removed automatically after they fire. A cron schedule keeps firing until you delete it.
Schedule input
Theinput object configures the process that each firing starts:
| Field | Type | Description |
|---|---|---|
command | string | Shell command to run inside the sandbox. Required. |
name | string | Optional process name, used to look up status and logs. |
env | object | Environment variables for the process. Values are encrypted at rest and masked in API responses. |
workingDir | string | Working directory for the command. |
keepAlive | boolean | Keep the sandbox awake (disable scale-to-zero) while the process runs. Defaults to true. |
timeout | integer | Process timeout in seconds. Defaults to 600. Set to 0 for no timeout. |
Create a schedule
Create a recurring schedule on an existing sandbox:List and manage schedules
Read, update, and delete schedules by theirid:
Execution history
Each firing records one execution. ThestatusCode is the HTTP status returned when the command was submitted to the sandbox, not the command’s own exit code: the scheduler does not wait for the command to finish. A 2xx or 3xx status means the command was accepted.
List the execution history of a sandbox. It returns the runs of every schedule on the sandbox, newest first:
scheduleId, statusCode, executedAt, and the processName used to start the process, so you can look up its logs (see Log streaming). History is a ring buffer per schedule: once it reaches maxExecutions (default 100), recording a new run drops the oldest.
Manage from the console
You can create and inspect schedules from the Blaxel Console, on the Schedules tab of a sandbox. The tab lists every schedule with its type, timing, and command, and shows the execution history for each one.Processes and commands
Execute and manage processes in sandboxes.
Log streaming
Access logs generated in a sandbox.
Expiration policies
Automatically delete sandboxes based on specific conditions.
