Files
klz-cables.com/.pnpm-store/v10/files/af/e4c3e0886424da27fe19cec0c5e917b76b375e89c12cdd6ac70d81a472993af2c82923ee1078a35db14b67aea7a538112fbd717ba55ef17d9158501e8b3554
Marc Mintel 5397309103
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
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

18 lines
711 B
Plaintext

import { countRunnableOrActiveJobsForQueue } from './countRunnableOrActiveJobsForQueue.js';
export const defaultBeforeSchedule = async ({ queueable, req })=>{
// All tasks in that queue that are either currently processing or can be run
const runnableOrActiveJobsForQueue = await countRunnableOrActiveJobsForQueue({
onlyScheduled: true,
queue: queueable.scheduleConfig.queue,
req,
taskSlug: queueable.taskConfig?.slug,
workflowSlug: queueable.workflowConfig?.slug
});
return {
input: {},
shouldSchedule: runnableOrActiveJobsForQueue === 0,
waitUntil: queueable.waitUntil
};
};
//# sourceMappingURL=defaultBeforeSchedule.js.map