Assembly Line v0.5.0 AssemblyLine.JobQueue.Supervisor

Provides supervision of the AssemblyLine.JobQueue.Server services as well as functions for starting and stopping new instances.

The Supervisor is started at the same time the application is started.

Summary

Functions

Callback implementation for c::supervisor.init/1

Starts a new AssemblyLine.JobQueue.Server with the given name and work list

Stops the AssemblyLine.JobQueue.Server with the specified name

Functions

init()

Callback implementation for c::supervisor.init/1.

start_link()
start_queue(name, work)

Specs

start_queue(String.t, [AssemblyLine.Job.t]) :: {:ok, pid}

Starts a new AssemblyLine.JobQueue.Server with the given name and work list.

Returns {:ok, pid}

stop_queue(name)

Specs

stop_queue(String.t) :: :ok

Stops the AssemblyLine.JobQueue.Server with the specified name.

Returns :ok