From 9293eb685eeabdcb2fa3389e69a73cc1e0789210 Mon Sep 17 00:00:00 2001
From: Christoph Reiter
Date: Wed, 24 Dec 2025 10:53:37 +0100
Subject: [PATCH] queue: shwo active build jobs
---
app/appstate.py | 1 +
app/templates/queue.html | 8 ++++++++
app/web.py | 1 +
3 files changed, 10 insertions(+)
diff --git a/app/appstate.py b/app/appstate.py
index 9039f51..99b773b 100644
--- a/app/appstate.py
+++ b/app/appstate.py
@@ -175,6 +175,7 @@ class BuildStatusPackage(BaseModel):
class BuildStatus(BaseModel):
packages: list[BuildStatusPackage] = []
cycles: list[tuple[str, str]] = []
+ jobs: list[dict[str, str]] = []
class Severity(Enum):
diff --git a/app/templates/queue.html b/app/templates/queue.html
index 680d97d..b6c47f3 100644
--- a/app/templates/queue.html
+++ b/app/templates/queue.html
@@ -45,6 +45,14 @@
{% endif %}
+ Active Jobs:
+ {% for job in jobs %}
+ {{ job.name }}{{ ", " if not loop.last else "" }}
+ {% else %}
+ -
+ {% endfor %}
+
+
diff --git a/app/web.py b/app/web.py
index 06619f2..f66fe05 100644
--- a/app/web.py
+++ b/app/web.py
@@ -704,6 +704,7 @@ async def queue(request: Request, response: Response, build_type: str = "") -> R
"build_types": get_build_types(),
"build_filter": build_filter,
"cycles": state.build_status.cycles,
+ "jobs": state.build_status.jobs,
}, headers=dict(response.headers))