Function getTaskRuns

  • Retrieves a paginated list of execution runs for the specified task, ordered by most recent run by default. Each run record includes the start and end time, status, and the identity that triggered it.

    Parameters

    • id: string

      The unique identifier of the task.

    • query: {
          limit?: number;
          page?: string;
          sort?:
              | "+status"
              | "-status"
              | "+startedAt"
              | "-startedAt"
              | "+endedAt"
              | "-endedAt"
              | "+taskId"
              | "-taskId"
              | "+actionId"
              | "-actionId";
      }

      an object with query parameters

      • Optionallimit?: number

        Maximum number of task runs to return per page.

      • Optionalpage?: string

        Cursor token for fetching the next page of results.

      • Optionalsort?:
            | "+status"
            | "-status"
            | "+startedAt"
            | "-startedAt"
            | "+endedAt"
            | "-endedAt"
            | "+taskId"
            | "-taskId"
            | "+actionId"
            | "-actionId"

        Field and direction to sort results by. Prefix the field name with + for ascending or - for descending order. Defaults to -startedAt.

    • Optionaloptions: ApiCallOptions

    Returns Promise<tasks.GetTaskRunsHttpResponse>

    GetTaskRunsHttpError