Class TaskClient

Constructors

Properties

httpRequest: HttpRequests

Methods

  • Cancel a list of enqueued or processing tasks.

    Parameters

    • parameters: Omit<TasksQuery, "limit" | "from"> = {}

      Parameters to filter the tasks.

    Returns Promise<EnqueuedTask>

    Promise containing an EnqueuedTask

  • Delete a list tasks.

    Parameters

    • parameters: Omit<TasksQuery, "limit" | "from"> = {}

      Parameters to filter the tasks.

    Returns Promise<EnqueuedTask>

    Promise containing an EnqueuedTask

  • Get one task

    Parameters

    • uid: number

      Unique identifier of the task

    Returns Promise<Task>

  • Wait for a task to be processed.

    Parameters

    • taskUid: number

      Task identifier

    • options: WaitOptions = {}

      Additional configuration options

    Returns Promise<Task>

    Promise returning a task after it has been processed

  • Waits for multiple tasks to be processed

    Parameters

    • taskUids: number[]

      Tasks identifier list

    • options: WaitOptions = {}

      Wait options

    Returns Promise<Task[]>

    Promise returning a list of tasks after they have been processed