Merge branch 'main' into cursor/bullmq-queue-phase-a-3038
This commit is contained in:
@@ -63,9 +63,10 @@ export default function dashboardPluginFactory(registry) {
|
||||
}
|
||||
}
|
||||
|
||||
const [active, failed, recent] = await Promise.all([
|
||||
const [active, streaks, failedEvents, recent] = await Promise.all([
|
||||
store.listRuns({ status: ["queued", "running"], limit: 10 }),
|
||||
store.listRuns({ status: "failed", limit: 20 }),
|
||||
store.listConsecutiveFailureStreaks({ minCount: 4, limit: 10 }),
|
||||
store.listRuns({ status: "failed", limit: 5 }),
|
||||
store.listRuns({ limit: 10 }),
|
||||
]);
|
||||
|
||||
@@ -76,9 +77,11 @@ export default function dashboardPluginFactory(registry) {
|
||||
brokenCount,
|
||||
running: active,
|
||||
needsAttention: {
|
||||
failed,
|
||||
consecutiveFailures: streaks.items,
|
||||
consecutiveFailureCount: streaks.total,
|
||||
brokenWorkflows,
|
||||
},
|
||||
failedEvents,
|
||||
recent,
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user