Skip to content

SearchJobs

Source: src/AWS/Deadline/SearchJobs.ts

Runtime binding for deadline:SearchJobs.

Searches the jobs of the bound Queue with filter and sort expressions (name, status, user, parameters, dates). The queue’s farmId/queueIds: [queueId] are injected from the binding. Provide the implementation with Effect.provide(AWS.Deadline.SearchJobsHttp).

// init — bind the operation to the queue
const searchJobs = yield* AWS.Deadline.SearchJobs(queue);
// runtime
const { jobs } = yield* searchJobs({
itemOffset: 0,
filterExpressions: {
operator: "AND",
filters: [
{
stringFilter: {
name: "TASK_RUN_STATUS",
operator: "EQUAL",
value: "FAILED",
},
},
],
},
});