Create a scheduler for a function
Changed onCreates regional scheduled invocation jobs. Requested regions must be a subset of the function's deployed regions.
Request
- Base URLhttps://api.volcano.dev
- Auth
- HTTP bearer
- or HTTP bearer
Path parameters
Project ID
Function ID
Request body
Optional single explicit deployed region. If omitted, the scheduler chooses one deployed region and invokes according to the cron expression.
Example request
{
"schedule": {
"cron_expression": "*/5 * * * *"
}
}Response
Scheduler created
Which collection the scheduled function belongs to. A project-wide scheduler list mixes both kinds, and this is what says whether the function is read back from /projects/{id}/functions or /projects/{id}/durable-functions — and whether a tick invokes it or starts a durable execution.
Total number of times this scheduler has executed. 0 for a scheduler that has never run.
failing while consecutive_failures is above 0; healthy otherwise, including before its first run in the region the scheduler runs in now. A run from a region it moved away from does not count. For a durable function a run finishes when its execution does, so a run that starts but then fails counts as failed.
How many runs in a row have failed in the region the scheduler runs in now. Resets to 0 when a run succeeds, and starts at 0 in a region it moves to.
Outcome of the most recent finished run. Absent before the first.
When the most recent successful run finished.
When the most recent failed run finished.
Changes
- info
added the optional property
consecutive_failuresto the response with the status - info
added the optional property
healthto the response with the status - info
added the optional property
last_failure_atto the response with the status
2 more changes in this revision
- info