Disable propagation grid worker and add maintenance banner to map

This commit is contained in:
Graham McIntire 2026-04-05 17:08:40 -05:00
parent 2f65ec8dff
commit 0b68cb2d29
No known key found for this signature in database
GPG key ID: F4ABF488E6029E59
2 changed files with 10 additions and 3 deletions

View file

@ -124,12 +124,14 @@ if config_env() == :prod do
{Oban.Plugins.Cron,
crontab: [
{"0 8 * * *", Microwaveprop.Workers.SolarIndexWorker},
{"*/5 * * * *", Microwaveprop.Commercial.PollWorker},
{"5 * * * *", Microwaveprop.Workers.PropagationGridWorker}
{"*/5 * * * *", Microwaveprop.Commercial.PollWorker}
# {"5 * * * *", Microwaveprop.Workers.PropagationGridWorker}
]}
]
config :microwaveprop, :email_from, {"NTMS Propagation", "graham@w5isp.com"}
config :microwaveprop, hrrr_base_url: System.get_env("HRRR_BASE_URL", "http://skippy.w5isp.com:8080")
config :microwaveprop, srtm_tiles_dir: "/srtm"
# config :microwaveprop, start_freshness_monitor: true
config :microwaveprop, start_freshness_monitor: false
end

View file

@ -276,10 +276,15 @@ defmodule MicrowavepropWeb.MapLive do
>
</div>
<%!-- Maintenance banner --%>
<div class="absolute top-0 left-0 right-0 z-[1100] bg-warning text-warning-content text-center text-sm py-1 px-4">
Propagation scores are not currently being updated while we backfill historical data. Displayed data may be stale.
</div>
<%!-- Top-left control panel --%>
<div
id="map-controls"
class="absolute top-2 left-12 z-[1000] flex flex-col gap-2 max-w-[calc(100vw-4rem)] md:left-14 md:top-3 md:max-w-none"
class="absolute top-9 left-12 z-[1000] flex flex-col gap-2 max-w-[calc(100vw-4rem)] md:left-14 md:top-10 md:max-w-none"
>
<div class="bg-base-100/90 shadow rounded-box border border-base-300 p-2 md:p-3 flex flex-col gap-2">
<div class="font-bold text-sm leading-tight px-1 flex items-center justify-between gap-2">