Current section

Files

Jump to
blazay lib compressor application.ex
Raw

lib/compressor/application.ex

defmodule Compressor.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Starts a worker by calling: Compressor.Worker.start_link(arg)
# {Compressor.Worker, arg},
Honeydew.worker_spec(
{:global, :encoder},
Compressor.Encoder,
num: 1,
nodes: [:"studio@zacks-macbook-pro"]
),
{Task.Supervisor, name: Compressor.TaskSupervisor}
]
# See https://hexdocs.pm/elixir/Supervisor.html
# for other strategies and supported options
opts = [strategy: :one_for_one, name: Compressor.Supervisor]
Supervisor.start_link(children, opts)
end
end