----- Oryginalna wiadomość ----- > Od: "Roberto De Ioris" <[email protected]> > Do: "uWSGI developers and users list" <[email protected]> > Wysłane: środa, 11 styczeń 2012 11:35:48 > Temat: Re: [uWSGI] after req hook > > You can call it directly here (in the timer function): > > uwsgi.after_req_hook() > > The reference count of the function is increased on startup, so you > could use it everywhere. >
But if an exception occurs, "after_req" did not perform. I care to behave, it is the same as request, so in spite of harakiri and exceptions is preform at the end of worker work. eg. prototype: application/req: some code uwsgi.signal(hard_work) other code (posible timeout/exception) return 'done' after_work_hook hard_work: code (posible timeout/exception) return 'done' after_work_hook uwsgi.add_timer(hard_work, 5) -- Łukasz Wróblewski http://www.nri.pl/ - Nowoczesne Rozwiązania Internetowe http://www.hostowisko.pl/ - Profesjonalny i tani hosting http://www.katalog-polskich-firm.pl/ - Najlepszy darmowy katalog firm _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
