File tree Expand file tree Collapse file tree 2 files changed +4
-11
lines changed
airflow-core/src/airflow/ui/src
pages/Dashboard/PoolSummary Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ export const PoolSummary = () => {
38
38
const totalSlots = pools ?. reduce ( ( sum , pool ) => sum + pool . slots , 0 ) ?? 0 ;
39
39
const aggregatePool : Slots = {
40
40
deferred_slots : 0 ,
41
- occupied_slots : 0 ,
42
41
open_slots : 0 ,
43
42
queued_slots : 0 ,
44
43
running_slots : 0 ,
@@ -47,7 +46,6 @@ export const PoolSummary = () => {
47
46
48
47
const poolsWithSlotType : Slots = {
49
48
deferred_slots : 0 ,
50
- occupied_slots : 0 ,
51
49
open_slots : 0 ,
52
50
queued_slots : 0 ,
53
51
running_slots : 0 ,
Original file line number Diff line number Diff line change 18
18
*/
19
19
20
20
/* eslint-disable perfectionist/sort-objects */
21
- import { FiXCircle } from "react-icons/fi" ;
22
-
23
21
import type { PoolResponse } from "openapi/requests/types.gen" ;
24
22
import { StateIcon } from "src/components/StateIcon" ;
25
23
26
- export type Slots = Omit < PoolResponse , "description" | "include_deferred" | "name" | "slots" > ;
24
+ export type Slots = Omit <
25
+ PoolResponse ,
26
+ "description" | "include_deferred" | "name" | "occupied_slots" | "slots"
27
+ > ;
27
28
export type SlotConfig = {
28
29
color : string ;
29
30
icon : JSX . Element ;
@@ -36,11 +37,6 @@ export const slotConfigs: Array<SlotConfig> = [
36
37
color : "success" ,
37
38
icon : < StateIcon color = "white" state = "success" /> ,
38
39
} ,
39
- {
40
- key : "occupied_slots" ,
41
- color : "up_for_retry" ,
42
- icon : < FiXCircle color = "white" /> ,
43
- } ,
44
40
{
45
41
key : "running_slots" ,
46
42
color : "running" ,
@@ -65,7 +61,6 @@ export const slotConfigs: Array<SlotConfig> = [
65
61
66
62
export const slotKeys : Array < keyof Slots > = [
67
63
"deferred_slots" ,
68
- "occupied_slots" ,
69
64
"open_slots" ,
70
65
"queued_slots" ,
71
66
"running_slots" ,
You can’t perform that action at this time.
0 commit comments