Revert "Merge PR #5886: fix(robomp): defer rate-limited submissions (@roboomp)"
This reverts commit81102634c8, reversing changes made to5c9b5f7b64.
This commit is contained in:
@@ -13,7 +13,6 @@ function relativeAgo(ms: number): string {
|
||||
|
||||
const STATE_TONE: Record<string, string> = {
|
||||
queued: "var(--color-info)",
|
||||
deferred: "var(--color-ink-300)",
|
||||
running: "var(--color-warn)",
|
||||
done: "var(--color-ok)",
|
||||
failed: "var(--color-err)",
|
||||
@@ -26,7 +25,7 @@ export function Vitals(): JSX.Element {
|
||||
// issue_event_counts ?? event_counts — preserves the Stats.tsx accessor + title.
|
||||
const counts = (): Record<string, number> => {
|
||||
const status = statusResource();
|
||||
if (!status) return { queued: 0, deferred: 0, running: 0, done: 0, failed: 0, skipped: 0 };
|
||||
if (!status) return { queued: 0, running: 0, done: 0, failed: 0, skipped: 0 };
|
||||
return status.issue_event_counts ?? status.event_counts;
|
||||
};
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// purpose: anything `unknown` here is something the backend explicitly does
|
||||
// not promise to keep stable.
|
||||
|
||||
export type EventState = "queued" | "deferred" | "running" | "done" | "failed" | "skipped";
|
||||
export type EventState = "queued" | "running" | "done" | "failed" | "skipped";
|
||||
|
||||
export type IssueState =
|
||||
| "new"
|
||||
@@ -157,7 +157,6 @@ export const LEVEL_ORDER: Readonly<Record<string, number>> = {
|
||||
|
||||
export const EVENT_STATE_ORDER: readonly EventState[] = [
|
||||
"queued",
|
||||
"deferred",
|
||||
"running",
|
||||
"done",
|
||||
"failed",
|
||||
|
||||
@@ -23,7 +23,6 @@ const BASE_RUNTIME: RuntimeInfo = {
|
||||
function eventCounts(): Record<EventState, number> {
|
||||
return {
|
||||
queued: 0,
|
||||
deferred: 0,
|
||||
running: 0,
|
||||
done: 0,
|
||||
failed: 0,
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
"inflight": [],
|
||||
"event_counts": {
|
||||
"queued": 1,
|
||||
"deferred": 0,
|
||||
"running": 1,
|
||||
"done": 2,
|
||||
"failed": 3,
|
||||
@@ -20,7 +19,6 @@
|
||||
},
|
||||
"issue_event_counts": {
|
||||
"queued": 1,
|
||||
"deferred": 0,
|
||||
"running": 1,
|
||||
"done": 2,
|
||||
"failed": 1,
|
||||
|
||||
Reference in New Issue
Block a user