19 lines
385 B
Elixir
19 lines
385 B
Elixir
defmodule BDS.Application do
|
|
@moduledoc false
|
|
|
|
use Application
|
|
|
|
@impl true
|
|
def start(_type, _args) do
|
|
children = [
|
|
BDS.Repo,
|
|
BDS.Scripting.JobStore,
|
|
{Task.Supervisor, name: BDS.Scripting.TaskSupervisor},
|
|
BDS.Scripting.JobSupervisor
|
|
]
|
|
|
|
opts = [strategy: :one_for_one, name: BDS.Supervisor]
|
|
Supervisor.start_link(children, opts)
|
|
end
|
|
end
|