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
      • Optionalsort?:
            | "+status"
            | "-status"
            | "+startedAt"
            | "-startedAt"
            | "+endedAt"
            | "-endedAt"
            | "+taskId"
            | "-taskId"
            | "+actionId"
            | "-actionId"
    • Optionaloptions: ApiCallOptions

    Returns Promise<tasks.GetTaskRunsHttpResponse>

    GetTaskRunsHttpError