Disable Oban queues in mix propagation_grid to prevent backfill noise
This commit is contained in:
parent
f6b1f751d4
commit
9c504acb67
1 changed files with 11 additions and 0 deletions
|
|
@ -6,6 +6,17 @@ defmodule Mix.Tasks.PropagationGrid do
|
|||
|
||||
@impl Mix.Task
|
||||
def run(_args) do
|
||||
# Pause all Oban queues so backfill jobs don't run alongside the grid fetch
|
||||
Application.put_env(
|
||||
:microwaveprop,
|
||||
Oban,
|
||||
Keyword.put(
|
||||
Application.get_env(:microwaveprop, Oban, []),
|
||||
:queues,
|
||||
false
|
||||
)
|
||||
)
|
||||
|
||||
Mix.Task.run("app.start")
|
||||
|
||||
IO.puts("Starting propagation grid computation...")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue