TaskBunny v0.3.4 TaskBunny.WorkerSupervisor View Source
Supervises all TaskBunny workers.
You don’t have to call or start the Supervisor explicity. It will be automatically started by application and configure child workers based on configuration file.
It also provides graceful_halt/1
and graceful_halt/2
that allow
you to shutdown the worker processes safely.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor
Similar to graceful_halt/2 but gets pid from module name
Halts the job pocessing on workers gracefully. It makes workers to stop processing new jobs and waits for jobs currently running to finish
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Similar to graceful_halt/2 but gets pid from module name.
Halts the job pocessing on workers gracefully. It makes workers to stop processing new jobs and waits for jobs currently running to finish.
Note: It doesn’t terminate any worker processes. The worker and worker supervisor processes will continue existing but won’t consume any new messages. To resume it, terminate the worker supervisor then the main supervisor will start new processes.