Skip to content

SearchTasks

Source: src/AWS/Deadline/SearchTasks.ts

Runtime binding for deadline:SearchTasks.

Searches the tasks of the bound Queue (optionally narrowed to one jobId) with filter and sort expressions. The queue’s farmId/queueIds: [queueId] are injected from the binding. Provide the implementation with Effect.provide(AWS.Deadline.SearchTasksHttp).

// init — bind the operation to the queue
const searchTasks = yield* AWS.Deadline.SearchTasks(queue);
// runtime
const { tasks, totalResults } = yield* searchTasks({
itemOffset: 0,
jobId,
});