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:
parent
d458c23782
commit
187fdf085e
1 changed files with 15 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue