Álvaro d290a2c457
Some checks failed
ci / docker (push) Failing after 4m14s
Update queues, fix patch_selector
2024-06-22 21:54:53 +02:00

25 lines
707 B
Elixir

defmodule Scrapper.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
Scrapper.Queue.MatchQueue,
Scrapper.Queue.PlayerQueue,
{Scrapper.Consumer.MatchConsumer, []},
{Scrapper.Consumer.PlayerConsumer, []}
# Starts a worker by calling: Scrapper.Worker.start_link(arg)
# {Scrapper.Worker, arg}
]
# See https://hexdocs.pm/elixir/Supervisor.html
# for other strategies and supported options
opts = [strategy: :one_for_one, name: Scrapper.Supervisor]
Supervisor.start_link(children, opts)
end
end