Disable historical backfill queues and cron in production

Only run live scoring (propagation, commercial, solar) in prod.
Backfill queues (weather, hrrr, iemre, terrain, enqueue) and the
QsoWeatherEnqueueWorker cron are dev-only for historical enrichment.
This commit is contained in:
Graham McIntire 2026-03-31 11:05:33 -05:00
parent d458c23782
commit 187fdf085e
No known key found for this signature in database
GPG key ID: F4ABF488E6029E59

View file

@ -68,6 +68,21 @@ if config_env() == :prod do
config :microwaveprop, :dns_cluster_query, System.get_env("DNS_CLUSTER_QUERY")
config :microwaveprop, srtm_tiles_dir: "/srtm"
# Production Oban: only live scoring and polling, no historical backfill
config :microwaveprop, Oban,
queues: [propagation: 1, commercial: 2, solar: 1],
plugins: [
{Oban.Plugins.Pruner, max_age: 3600 * 24},
{Oban.Plugins.Lifeline, rescue_after: 30 * 60 * 1000},
{Oban.Plugins.Cron,
crontab: [
{"0 8 * * *", Microwaveprop.Workers.SolarIndexWorker},
{"*/5 * * * *", Microwaveprop.Commercial.PollWorker},
{"5 * * * *", Microwaveprop.Workers.PropagationGridWorker},
{"*/10 * * * *", Microwaveprop.Workers.AsosAdjustmentWorker}
]}
]
# ## SSL Support
#
# To get SSL working, you will need to add the `https` key