Type Alias ReloadOnTaskEventRequest

Request body for creating a reload task that runs when another task finishes with a given status.

type ReloadOnTaskEventRequest = {
    description?: string;
    enabled?: boolean;
    name: string;
    onTaskId: string;
    onTaskStatus?: "succeeded" | "failed" | "any";
    partial?: boolean;
}
Index
description?: string

A human-readable description of the task's purpose.

enabled?: boolean

Whether the task is enabled. A disabled task never runs on its own. Defaults to false.

name: string

The name that identifies the task.

onTaskId: string

The unique identifier of the upstream task whose runs trigger this reload. It must belong to the caller's tenant, and the caller needs read access to its app.

onTaskStatus?: "succeeded" | "failed" | "any"

The outcome of an upstream task run that triggers this reload. Defaults to succeeded.

  • succeeded: the run completed successfully. For an automation, finished and finished with warnings count as success.
  • failed: the run ended in any unsuccessful state, such as failed, canceled or exceeded limits.
  • any: either of the above.

Only runs started by the scheduling service count: scheduled, triggered or manual task runs. A reload started directly on the app does not.

partial?: boolean

Whether the reload is partial.