Content-Length: 355038 | pFad | http://github.com/apache/airflow/commit/d794e7014d84cd89cc45065c6678eeb764c1eb48

25 Remove occupied slots from PoolBar (#50776) · apache/airflow@d794e70 · GitHub
Skip to content

Commit d794e70

Browse files
authored
Remove occupied slots from PoolBar (#50776)
1 parent a531da4 commit d794e70

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

airflow-core/src/airflow/ui/src/pages/Dashboard/PoolSummary/PoolSummary.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export const PoolSummary = () => {
3838
const totalSlots = pools?.reduce((sum, pool) => sum + pool.slots, 0) ?? 0;
3939
const aggregatePool: Slots = {
4040
deferred_slots: 0,
41-
occupied_slots: 0,
4241
open_slots: 0,
4342
queued_slots: 0,
4443
running_slots: 0,
@@ -47,7 +46,6 @@ export const PoolSummary = () => {
4746

4847
const poolsWithSlotType: Slots = {
4948
deferred_slots: 0,
50-
occupied_slots: 0,
5149
open_slots: 0,
5250
queued_slots: 0,
5351
running_slots: 0,

airflow-core/src/airflow/ui/src/utils/slots.tsx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@
1818
*/
1919

2020
/* eslint-disable perfectionist/sort-objects */
21-
import { FiXCircle } from "react-icons/fi";
22-
2321
import type { PoolResponse } from "openapi/requests/types.gen";
2422
import { StateIcon } from "src/components/StateIcon";
2523

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+
>;
2728
export type SlotConfig = {
2829
color: string;
2930
icon: JSX.Element;
@@ -36,11 +37,6 @@ export const slotConfigs: Array<SlotConfig> = [
3637
color: "success",
3738
icon: <StateIcon color="white" state="success" />,
3839
},
39-
{
40-
key: "occupied_slots",
41-
color: "up_for_retry",
42-
icon: <FiXCircle color="white" />,
43-
},
4440
{
4541
key: "running_slots",
4642
color: "running",
@@ -65,7 +61,6 @@ export const slotConfigs: Array<SlotConfig> = [
6561

6662
export const slotKeys: Array<keyof Slots> = [
6763
"deferred_slots",
68-
"occupied_slots",
6964
"open_slots",
7065
"queued_slots",
7166
"running_slots",

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/apache/airflow/commit/d794e7014d84cd89cc45065c6678eeb764c1eb48

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy