- Event handler callback fro reporting process lifetime events revisited.
- New api setname(process, new_name) for changing process id
- MacOS support #7
- If already active supervise() add processes instead of throwing an exception.
- Add 'one_terminate_all' supervisor strategy.
- Fix
one_for_all
andrest_for_all
strategies #5
- Update supervisor status at process termination #3
-
Setup supervisors settings with
setsupervisor
andsetroot
functions. -
procs()
: get the supervised processes as a nested ordered dict. -
Fixed @warn message in case of
ProcessFatal
. -
Add
hassupervised(name)
function. -
from(path)
returnnothing
instead of throwing an exception if process identified bypath
is not found.
-
Renamed functions:
- is_shutdown=>isshutdown
- is_request=>isrequest
- if_restart=>ifrestart
-
Add
handler
keyword arg to supervise.handler
value is a callback function for handling process lifecycles events. Currently manages events are task exceptions andProcessFatal
. -
Removed
supervisor_shutdown
in case of aProcessFatal
exception. This implies that the other processes continue to run despite the process that thrownProcessFatal
will never restart. -
Log a warn message when starting a process task throws a MethodError exception.
-
New function
isprocstarted
: check if process task is running. -
@isshutdown macro.
- Initial release.