One question regarding the PeriodicCallbacks: Is the callback triggered while a previous triggered one is still running or does it ensure that there is only one callback running at a time? As far as I can see the later one is true, but I want to be sure!
--
You received this message because you are subscribed to the Google Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornad...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
One question regarding the PeriodicCallbacks: Is the callback triggered while a previous triggered one is still running or does it ensure that there is only one callback running at a time? As far as I can see the later one is true, but I want to be sure!
--
--
PeriodicCallback schedules next execution after callback function is exited.Here's sequence: N, 2*N + T1, 3*N + T1 + T2, ...N - callback timeTx - time spent in the callback function
what is the callback is a function that takes for time, say if
datetime.datetime.now().hour == 18 then publish something, and then
PeriodicCallback is set to 24 hours, and what if it can do it at this
time (for example there is no internet at 18h or the server goes
down) ?
i don't understand this line : "yield gen.Task(loop.add_timeout, max(N - duration, 0))".
Can someone explain me please? If duration is less than N=5 seconds (for example 2 seconds) so when is the next task of do_some_coroutine()? 3 seconds?
Trying the code it seems that start immediately, without waiting 3 seconds...
thanks
For more options, visit https://groups.google.com/d/optout.