Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
22 lines
870 B
Plaintext
22 lines
870 B
Plaintext
import type { PayloadRequest } from '../../../types/index.js';
|
|
import type { TaskType } from '../../config/types/taskTypes.js';
|
|
import type { WorkflowTypes } from '../../config/types/workflowTypes.js';
|
|
/**
|
|
* Gets all queued jobs that can be run. This means they either:
|
|
* - failed but do not have a definitive error => can be retried
|
|
* - are currently processing
|
|
* - have not been started yet
|
|
*/
|
|
export declare function countRunnableOrActiveJobsForQueue({ onlyScheduled, queue, req, taskSlug, workflowSlug, }: {
|
|
/**
|
|
* If true, this counts only jobs that have been created through the scheduling system.
|
|
*
|
|
* @default false
|
|
*/
|
|
onlyScheduled?: boolean;
|
|
queue: string;
|
|
req: PayloadRequest;
|
|
taskSlug?: TaskType;
|
|
workflowSlug?: WorkflowTypes;
|
|
}): Promise<number>;
|
|
//# sourceMappingURL=countRunnableOrActiveJobsForQueue.d.ts.map |