From 2b1fd6129daa9e712b802b465d70d2e7fbcaf77f Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Tue, 31 Mar 2026 17:27:59 -0500 Subject: [PATCH] Disable propagation grid worker and freshness monitor in dev for backfill --- config/dev.exs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/config/dev.exs b/config/dev.exs index 90033455..7d89f136 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -93,3 +93,18 @@ config :phoenix_live_view, # Disable swoosh api client as it is only required for production adapters. config :swoosh, :api_client, false + +# Disable propagation grid worker and freshness monitor in dev to let backfill run +config :microwaveprop, start_freshness_monitor: false + +config :microwaveprop, Oban, + queues: [solar: 1, weather: 20, enqueue: 1, hrrr: 5, terrain: 4, commercial: 2, iemre: 10], + plugins: [ + {Oban.Plugins.Pruner, max_age: 3600 * 24}, + {Oban.Plugins.Lifeline, rescue_after: to_timeout(minute: 30)}, + {Oban.Plugins.Cron, + crontab: [ + {"0 8 * * *", Microwaveprop.Workers.SolarIndexWorker}, + {"*/30 * * * *", Microwaveprop.Workers.QsoWeatherEnqueueWorker} + ]} + ]