[Enhancement] Show currently executing jobs on homepage (#250)

* [WIP] Added PoC job table

* [WIP] hooked up tasks table with real data

* Added reload on websocket command

* Hooked it all up to a websocket
This commit is contained in:
Kieran
2024-05-17 10:55:27 -07:00
committed by GitHub
parent bbdc56c656
commit 94c0cf9970
12 changed files with 280 additions and 8 deletions
+5
View File
@@ -19,6 +19,11 @@ defmodule PinchflatWeb.Telemetry do
Supervisor.init(children, strategy: :one_for_one)
end
@doc false
def job_state_change_broadcast(_event, _measure, _meta, _config) do
PinchflatWeb.Endpoint.broadcast("job:state", "change", nil)
end
def metrics do
[
# Phoenix Metrics