Hello everyone.
I am trying to schedule a task to run only once at a specific time. I am
using the "start_time" argument in the function queue_task of the scheduler
as below:
scheduler.queue_task(
mytask,
pargs=[],
pvars= dict(a=2, b=3),
stop_time = None,
start_time = request.now + timed(seconds=300),
timeout = 60,
repeats = 1,
period = 60,
retry_failed = 0
)
It's working fine on Linux, but on Windows my task is getting executed
right away, without any delay.
Does anyone tackle the same problem and got a solution?
Thanks!
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.