In our phoenix app, we have in
app.ex several child processes:
def start(_type, _args) do Supervisor.start_link([ worker(MyApp.Worker.Worker1, ), worker(MyApp.Worker.Worker2, ), worker(MyApp.Worker.Worker3, ), ], [strategy: :one_for_one, name: MyApp.Supervisor])
But some of those processes are required only if running the web server along, not when we do
iex -S mix to get a console. Can I filter out those processes if the main server process is not started?