We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d902c32 commit 1b448e1Copy full SHA for 1b448e1
plugins/plugin-codeflare-dashboard/src/controller/dashboard/status/Live.ts
@@ -46,7 +46,7 @@ export default class Live {
46
return a.timestamp - b.timestamp
47
}
48
49
- const stateDiff = b.stateRank - a.stateRank
+ const stateDiff = a.stateRank - b.stateRank
50
if (stateDiff !== 0) {
51
return stateDiff
52
} else {
plugins/plugin-codeflare-dashboard/src/controller/dashboard/status/states.ts
@@ -22,8 +22,8 @@ export type WorkerState = (typeof states)[number]
22
/** Lower means more important */
23
export const rankFor: Record<WorkerState, number> = {
24
Queued: 3,
25
- Provisioning: 1,
26
- Initializing: 2,
+ Provisioning: 2,
+ Initializing: 4,
27
Running: 1,
28
Success: 0,
29
Failed: 0,
0 commit comments