Crons

GET /projects/{project_id}/environments/{env_id}/crons

Changed on

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    none declared

Path parameters

project_idinteger required

Project ID

env_idinteger required

Environment ID

Response

List of cron jobs

commandstring[] nullable

The argv a job cron runs. Absent for http.

concurrency_policystring required

allow | forbid | replace: what a job run does while the previous one is still active.

created_atstring required
deleted_atstring nullable
environment_idinteger required
has_workflow_inputboolean required

Whether a workflow cron gives its runs an input (set in .temps.yaml).

idinteger required
modestring required

http (a GET to path on the running deployment), job (command run in the environment's image until it exits) or workflow (a run of the durable workflow workflow started). For a job, path is the cron's key, job:<name>; for a workflow, workflow:<name>.

next_runstring nullable
pathstring required
project_idinteger required
retry_limitinteger required

Attempts after the first when a job run fails.

schedulestring required
starting_deadline_secondsinteger nullable

A job run that cannot start within this many seconds of its scheduled time is skipped.

timeout_secondsinteger nullable

Maximum run time of a job run; absent takes the default (3600).

ttl_seconds_after_finishedinteger nullable

How long a finished job run's container is kept; absent takes the default (600).

updated_atstring required
workflowstring nullable

The durable workflow a workflow cron starts. Absent otherwise.

Example response

[
  {
    "concurrency_policy": "forbid",
    "mode": "http"
  }
]

Changes

    • info

      added the optional property items/workflow to the response with the status

    • info

      added the required property items/has_workflow_input to the response with the status

    • breaking

      removed the required property items/has_workflow_input from the response with the status

    1 more change in this revision