Broadcast weather:updated PubSub after HRRR profiles stored

This commit is contained in:
Graham McIntire 2026-04-03 15:10:16 -05:00
parent 0dd695c574
commit 10390f3d07
No known key found for this signature in database
GPG key ID: F4ABF488E6029E59

View file

@ -69,6 +69,13 @@ defmodule Microwaveprop.Workers.PropagationGridWorker do
end) do
{:ok, grid_data} ->
store_hrrr_profiles(grid_data, valid_time)
Phoenix.PubSub.broadcast(
Microwaveprop.PubSub,
"weather:updated",
{:weather_updated, valid_time}
)
scores = compute_scores(grid_data, valid_time)
case Propagation.upsert_scores(scores, prune: false) do