[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user