Skip to main content

kobana kadu schedules

Commands of kobana kadu schedules. Every global option (Global options) applies here.

CommandHTTPDescription
schedules listGET /v1/schedulesList schedules
schedules createPOST /v1/schedulesSchedule a Task in an environment
schedules getGET /v1/schedules/{id}Get schedule details
schedules updatePATCH /v1/schedules/{id}Update, pause or resume a schedule
schedules deleteDELETE /v1/schedules/{id}Cancel schedule (soft delete)

schedules list​

List schedules

kobana kadu schedules list [OPTIONS]

GET /v1/schedules

Query parameters

NameTypeRequiredDescription
cursorstringno
limitnumberno
sort_bystringnoField in snake_case: created_at (default), updated_at or a filterable field.
sort_orderstringnoDefault: desc. Values: asc, desc.

Responses

HTTPDescription
200OK
503AS_UNAVAILABLE — token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

schedules create​

Schedule a Task in an environment

kobana kadu schedules create [OPTIONS]

POST /v1/schedules

One schedule per Task and environment. Schedules do not stack: the run is skipped if the Task already has an active or queued execution.

Request body

NameTypeRequiredDescription
task_idstring (uuid)yes
environment_idstring (uuid)yes
cronstringyes
timezonestringno
pausedbooleanno

More fields and nested objects: kobana schema kadu.schedules.create.

Responses

HTTPDescription
201created
409CONFLICT — the Task already has a schedule in the environment (details.schedule_id) / IDEMPOTENCY_KEY_REUSED
422INVALID_CRON / VALIDATION_ERROR — Task or environment outside the organization
503AS_UNAVAILABLE — token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

schedules get​

Get schedule details

kobana kadu schedules get [ID] [OPTIONS]

GET /v1/schedules/{id}

Path arguments: id

Responses

HTTPDescription
200OK
404not found
503AS_UNAVAILABLE — token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

schedules update​

Update, pause or resume a schedule

kobana kadu schedules update [ID] [OPTIONS]

PATCH /v1/schedules/{id}

paused: true keeps the cron and makes the dispatcher skip the schedule.

Path arguments: id

Request body

NameTypeRequiredDescription
cronstringno
timezonestringno
pausedbooleanno

More fields and nested objects: kobana schema kadu.schedules.update.

Responses

HTTPDescription
200OK
404NOT_FOUND
409IDEMPOTENCY_KEY_REUSED / IDEMPOTENCY_REQUEST_IN_PROGRESS (or the route's CONFLICT)
422INVALID_CRON
503AS_UNAVAILABLE — token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

schedules delete​

Cancel schedule (soft delete)

kobana kadu schedules delete [ID] [OPTIONS]

DELETE /v1/schedules/{id}

A new POST for the same Task and environment re-enables the schedule.

Path arguments: id

Responses

HTTPDescription
200OK
404NOT_FOUND
409REPO_MANAGED — declared in the skill frontmatter's schedules: remove it from there
503AS_UNAVAILABLE — token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).