> Is it possible to handle HARAKIRI event by given function ?
> Actually I am interested in all the cases in which the worker dies.
>
> Information is recorded in the logs, which is great,
> but I would like to receive eg e-mail or perform other activities
> specified in a function,
> when there is a not handled by my code error.
>

If you scan the master.c source you will find a reference to harakiri
custom handler. This was part of the ancient 0.9.4 but got removed when
the master loses the hability to run custom code to avoid it blocking the
whole infrastructure.

The ideas is having a more generic approach (a notification subsystem)
composed by a table of event and handlers. For example:

harakiri on worker -> send email
harakiri on mule -> GET to a url
exception on worker -> system beep
crash of spooler -> send a tweet

and so on

This will be part of 1.1 (so starting from january)


-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to