Prerequisites
- A deployed Tensorlake application. See the Quickstart to deploy one.
- Your namespace and application name.
Creating a Schedule
Send aPOST request to create a cron schedule for a deployed application. The schedule starts immediately after creation.
Request fields
| Field | Type | Required | Description |
|---|---|---|---|
cron_expression | string | Yes | A valid 5-field cron expression |
input_base64 | string | No | Base64-encoded bytes passed as input on every invocation. Maximum 1 MiB decoded. |
schedule_id. Save this — it is required to delete the schedule later.
The minimum allowed interval is 60 seconds.
* * * * * (every minute) is the fastest supported expression. Sub-minute expressions are rejected with a 400 error.Listing Schedules
Retrieve all cron schedules for an application:Response fields
| Field | Type | Description |
|---|---|---|
id | string | Unique ID for this schedule |
application_name | string | The application this schedule belongs to |
cron_expression | string | The schedule expression as stored |
next_fire_time_ms | number | Unix timestamp (ms) of the next scheduled invocation |
last_fired_at_ms | number | null | Unix timestamp (ms) of the last invocation. null if the schedule has never fired. |
created_at | number | Monotonic counter for ordering — not a wall-clock timestamp, do not display as a date |
enabled | boolean | Always true — reserved for future use |
next_fire_time_ms and last_fired_at_ms are standard Unix millisecond timestamps. In JavaScript: new Date(next_fire_time_ms).
Deleting a Schedule
cron_expression from the list response to pre-populate the new request.
Limits
| Limit | Value |
|---|---|
| Minimum interval | 60 seconds |
| Maximum schedules per application | 100 |
| Maximum input payload | 1 MiB (decoded) |
Related
Durable Execution
How Tensorlake recovers scheduled runs from the last successful checkpoint on failure.
Observability
Monitor scheduled invocations alongside the rest of your application activity.
Retries
Configure automatic retries for functions triggered by the scheduler.
Secrets
Pass secrets securely to functions that run on a schedule.