----- Oryginalna wiadomość -----
> Od: "Roberto De Ioris" <[email protected]>
> Do: "uWSGI developers and users list" <[email protected]>
> Wysłane: sobota, 2 lipiec 2011 19:49:02
> Temat: Re: [uWSGI] signals
>
> > 3. "workers" send the signal to all the workers (still not
> > implemented)
> >
> > Is this still not implemented?
> > The tests show that, yes.
> > I wanted to send a signal to all workers, but only one receives it.
> >
> > def test(a): print('...test..')
> > uwsgi.register_signal(2, "workers", test)
> >
> > and raise it by uwsgi.signal(2)
>
>
> Yes, it is still not implemented, and this is a PITA as it will
> allows
> really kick-ass functionality. Now that the spooler improvements work
> is
> pratically over (only one feature missing) i can focus on this.
>
I wait impatiently :]
> >
> > 4. Is the following example should not work properly?
> >
> > class Test:
> > def test(a):
> > print('...test..')
> >
> > t = Test()
> > uwsgi.register_signal(2, "workers", t.test)
> >
> >
>
> It should work, except for the "workers" target
>
So, such construction does not work. Print will never perform.
What is quite strange. The "test" function works fine, but class is not.
--
Ł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