Search for Kestra Executions

yaml
type: "io.kestra.plugin.kestra.executions.Query"

Search for executions with a specific label

yaml
id: search_executions_by_label
namespace: company.team

tasks:
  - id: query
    type: io.kestra.plugin.kestra.executions.Query
    kestraUrl: http://localhost:8080
    labels:
      key: value
    auth:
      username: [email protected] # pass your Kestra username as secret or KV pair
      password: Admin1234 # pass your Kestra password as secret or KV pair
    fetchType: STORE # Store the results in a file

Search for successful executions in the last 10 hours

yaml
id: search_successful_executions
namespace: company.team

tasks:
  - id: search_executions
    type: io.kestra.plugin.kestra.executions.Query
    kestraUrl: http://localhost:8080
    timeRange: PT10H # In the last 10 hours
    states:
      - SUCCESS
    auth:
      username: [email protected] # pass your Kestra username as secret or KV pair
      password: Admin1234 # pass your Kestra password as secret or KV pair
    fetchType: FETCH # Fetch the results directly in the task output
Properties

Authentication information.

Possible Values
CHILDMAIN

To list only child executions of a given flow.

Format date-time

To list only executions created before a given end date.

Default STORE
Possible Values
STOREFETCHFETCH_ONENONE

The way the fetched data will be stored.

To list only executions of a given flow.

SubType string
Possible Values
USERSYSTEM

Can be set to USER to fetch only user-created executions, or to SYSTEM to fetch only system executions. By default, the task will handle both.

Kestra API URL. If null, uses 'kestra.url' from configuration. If that is also null, defaults to 'http://localhost: 8080'.

SubType string

To list only executions with given labels.

To list only executions from a given namespace.

If not provided, all pages are fetched

To efficiently fetch only the first 10 API results, you can use page: 1 along with size: 10.

Default 10

The number of results to return per page.

Format date-time

To list only executions created after a given start date.

SubType string
Possible Values
CREATEDRUNNINGPAUSEDRESTARTEDKILLINGSUCCESSWARNINGFAILEDKILLEDCANCELLEDQUEUEDRETRYINGRETRIEDSKIPPEDBREAKPOINT

To list only executions in given states.

The tenant ID to use for the request, defaults to current tenant.

Format duration

To list only executions created within a given time range duration.

To list all downstream executions started from a given execution id.

Map containing the first row of fetched data.

Only populated if using fetchType=FETCH_ONE.

List containing the fetched data.

Only populated if using fetchType=FETCH.

The number of fetched rows.

Format uri

Kestra's internal storage URI of the stored data.

Only populated if using fetchType=STORE.

API token.

Password for HTTP Basic authentication.

Username for HTTP Basic authentication.