Files
klz-cables.com/.pnpm-store/v10/files/59/877b08e926594fb033f7432fe4d99c4a2ed2b966b039f06dc09f85b860d475f401148d4f81d95fa9d846b6b29653382cb71501b0c4d8cb636ed2b4bb175bd3
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

34 lines
1.1 KiB
Plaintext

export const getQueuesWithSchedules = ({ jobsConfig })=>{
const tasksWithSchedules = jobsConfig.tasks?.filter((task)=>{
return task.schedule?.length;
}) ?? [];
const workflowsWithSchedules = jobsConfig.workflows?.filter((workflow)=>{
return workflow.schedule?.length;
}) ?? [];
const queuesWithSchedules = {};
for (const task of tasksWithSchedules){
for (const schedule of task.schedule ?? []){
;
(queuesWithSchedules[schedule.queue] ??= {
schedules: []
}).schedules.push({
scheduleConfig: schedule,
taskConfig: task
});
}
}
for (const workflow of workflowsWithSchedules){
for (const schedule of workflow.schedule ?? []){
;
(queuesWithSchedules[schedule.queue] ??= {
schedules: []
}).schedules.push({
scheduleConfig: schedule,
workflowConfig: workflow
});
}
}
return queuesWithSchedules;
};
//# sourceMappingURL=getQueuesWithSchedules.js.map