Current section

Files

Jump to
pollex lib pollex application.ex
Raw

lib/pollex/application.ex

defmodule Pollex.Application do
require Logger
use Application
@impl true
def start(_type, _args) do
children = [
{DynamicSupervisor, name: Pollex.DynamicSupervisor, strategy: :one_for_one},
{Task.Supervisor, name: Pollex.TaskSuperVisor},
Pollex.DatasetInitializer
]
opts = [strategy: :one_for_one, name: Pollex.Supervisor]
Supervisor.start_link(children, opts)
end
end