mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
Hotfix jobs scheduling
This commit is contained in:
@@ -16,7 +16,7 @@ defmodule Domain.Jobs do
|
||||
Enum.flat_map(module.__handlers__(), fn {name, interval} ->
|
||||
handler_config = Keyword.get(config, name, [])
|
||||
|
||||
if Keyword.get(handler_config, :enabled, true) do
|
||||
if Keyword.get(config, :enabled, true) and Keyword.get(handler_config, :enabled, true) do
|
||||
[
|
||||
Supervisor.child_spec(
|
||||
{Domain.Jobs.Executors.Global, {{module, name}, interval, handler_config}},
|
||||
|
||||
@@ -68,6 +68,8 @@ if config_env() == :prod do
|
||||
# Enable background jobs only on dedicated nodes
|
||||
config :domain, Domain.Tokens.Jobs, enabled: compile_config!(:background_jobs_enabled)
|
||||
|
||||
config :domain, Elixir.Domain.Billing.Jobs, enabled: compile_config!(:background_jobs_enabled)
|
||||
|
||||
config :domain, Domain.Auth.Adapters.GoogleWorkspace.Jobs,
|
||||
enabled: compile_config!(:background_jobs_enabled)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user