- oban_pro: 1.6.11 → 1.6.13 - Enhanced Smart engine functionality - Refactored Dynamic Cron plugin - Added diagnostics and executing stage modules - oban_met: already at 1.0.6 (verified) - oban_web: already at 2.11.8 (latest)
29 lines
602 B
Elixir
29 lines
602 B
Elixir
defmodule Oban.Pro.Application do
|
|
@moduledoc false
|
|
|
|
use Application
|
|
|
|
@handlers [
|
|
Oban.Pro.Batch,
|
|
Oban.Pro.Engines.Smart,
|
|
Oban.Pro.Migration,
|
|
Oban.Pro.Partition,
|
|
Oban.Pro.Relay,
|
|
Oban.Pro.Worker,
|
|
Oban.Pro.Workflow
|
|
]
|
|
|
|
@impl Application
|
|
def start(_type, _args) do
|
|
for handler <- @handlers, do: handler.on_start()
|
|
|
|
children = [Oban.Pro.Diagnostics, Oban.Pro.Refresher]
|
|
|
|
Supervisor.start_link(children, strategy: :one_for_one, name: __MODULE__)
|
|
end
|
|
|
|
@impl Application
|
|
def stop(_state) do
|
|
for handler <- @handlers, do: handler.on_stop()
|
|
end
|
|
end
|