On Monday, July 25, 2016 at 10:50:25 AM UTC-7, cam schn wrote:
>
> 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!
>

I haven't tried it on Windows myself (but I'm pretty sure someone here has 
this experience).

However, can you grab the relevant entries from the task_run table, and 
post them here?  (Obfuscate IPs and such, of course)
Include the results from both Winders (which version?  7, 8.1, Svr2012?) 
and from Linux.

/dps

-- 
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.

Reply via email to