> Hi,
>
> I want to use one shot timer , but when I use uwsgi.add_timer(30, 40, 1),
> I get a exception:
>
>
> TypeError at /
>    add_timer() takes exactly 2 arguments (3 given)
>
> Is this a bug or am I missing something?
>
> uwsgi virson == 1.1.2_______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>


Oneshot timers are only available in redblack mode:

uwsgi.add_rb_timer(signum, secs, iterations)

set iterations = 1 to have a one-shot timer

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

Reply via email to