[web2py] Re: How to schedule a task to run at the same time every day

2014-02-21 Thread John Felps
Thanks for clarifying, I did find that. 

On Friday, February 21, 2014 9:05:35 AM UTC-7, LightDot wrote:
>
> In "trunk" refers to the development version of web2py. Basically, it 
> means that this feature will be available in the next web2py release, but 
> isn't a part of the current 2.8.2. You can check out web2py from google 
> code or github if you'd like to use it now - keeping in mind that you'll be 
> using a devel version that might include some less tested code, of course.
>
> Regards
>
>
> On Friday, February 21, 2014 4:54:12 PM UTC+1, John Felps wrote:
>>
>> Can I use it on the page appadmin/insert/db/scheduler_task?
>> If so, where does it go?
>> There are no fields called "trunk"
>>
>> On Friday, February 21, 2014 8:47:15 AM UTC-7, Niphlod wrote:
>>>
>>> it's a parameter (available in trunk), not an argument.
>>>
>>> On Friday, February 21, 2014 4:29:35 PM UTC+1, John Felps wrote:

 Thanks for the quick reply. When I try to add 
 prevent_drift=True to the args in 
 appadmin/insert/db/scheduler_task
 I get invalid json

 On Friday, February 21, 2014 8:15:35 AM UTC-7, Anthony wrote:
>
> As of web2py 2.8.2, you can do:
>
> scheduler.queue_task(..., prevent_drift=True)
>
> See http://web2py.com/books/default/chapter/29/04/the-core#Scheduler.
>
> Anthony
>
> On Friday, February 21, 2014 9:54:09 AM UTC-5, John Felps wrote:
>>
>> I have a daily task, scheduled for midnight, with a repeat of 0 and a 
>> period of 86400 that has been running daily for about a month, but over 
>> time it has drifted so that it starts at nearly 4 am. How do I just tell 
>> the task to always start at midnight?
>>
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: How to schedule a task to run at the same time every day

2014-02-21 Thread LightDot
In "trunk" refers to the development version of web2py. Basically, it means 
that this feature will be available in the next web2py release, but isn't a 
part of the current 2.8.2. You can check out web2py from google code or 
github if you'd like to use it now - keeping in mind that you'll be using a 
devel version that might include some less tested code, of course.

Regards


On Friday, February 21, 2014 4:54:12 PM UTC+1, John Felps wrote:
>
> Can I use it on the page appadmin/insert/db/scheduler_task?
> If so, where does it go?
> There are no fields called "trunk"
>
> On Friday, February 21, 2014 8:47:15 AM UTC-7, Niphlod wrote:
>>
>> it's a parameter (available in trunk), not an argument.
>>
>> On Friday, February 21, 2014 4:29:35 PM UTC+1, John Felps wrote:
>>>
>>> Thanks for the quick reply. When I try to add 
>>> prevent_drift=True to the args in 
>>> appadmin/insert/db/scheduler_task
>>> I get invalid json
>>>
>>> On Friday, February 21, 2014 8:15:35 AM UTC-7, Anthony wrote:

 As of web2py 2.8.2, you can do:

 scheduler.queue_task(..., prevent_drift=True)

 See http://web2py.com/books/default/chapter/29/04/the-core#Scheduler.

 Anthony

 On Friday, February 21, 2014 9:54:09 AM UTC-5, John Felps wrote:
>
> I have a daily task, scheduled for midnight, with a repeat of 0 and a 
> period of 86400 that has been running daily for about a month, but over 
> time it has drifted so that it starts at nearly 4 am. How do I just tell 
> the task to always start at midnight?
>


-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: How to schedule a task to run at the same time every day

2014-02-21 Thread Anthony
Looks like it might only be available in trunk. Also, it's not an arg of 
you function, it is a field in the scheduler_task table and also available 
as an arg to the .queue_task() method. Check the book.

Anthony

On Friday, February 21, 2014 10:29:35 AM UTC-5, John Felps wrote:
>
> Thanks for the quick reply. When I try to add 
> prevent_drift=True to the args in 
> appadmin/insert/db/scheduler_task
> I get invalid json
>
> On Friday, February 21, 2014 8:15:35 AM UTC-7, Anthony wrote:
>>
>> As of web2py 2.8.2, you can do:
>>
>> scheduler.queue_task(..., prevent_drift=True)
>>
>> See http://web2py.com/books/default/chapter/29/04/the-core#Scheduler.
>>
>> Anthony
>>
>> On Friday, February 21, 2014 9:54:09 AM UTC-5, John Felps wrote:
>>>
>>> I have a daily task, scheduled for midnight, with a repeat of 0 and a 
>>> period of 86400 that has been running daily for about a month, but over 
>>> time it has drifted so that it starts at nearly 4 am. How do I just tell 
>>> the task to always start at midnight?
>>>
>>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: How to schedule a task to run at the same time every day

2014-02-21 Thread Niphlod
it's a parameter (available in trunk), not an argument.

On Friday, February 21, 2014 4:29:35 PM UTC+1, John Felps wrote:
>
> Thanks for the quick reply. When I try to add 
> prevent_drift=True to the args in 
> appadmin/insert/db/scheduler_task
> I get invalid json
>
> On Friday, February 21, 2014 8:15:35 AM UTC-7, Anthony wrote:
>>
>> As of web2py 2.8.2, you can do:
>>
>> scheduler.queue_task(..., prevent_drift=True)
>>
>> See http://web2py.com/books/default/chapter/29/04/the-core#Scheduler.
>>
>> Anthony
>>
>> On Friday, February 21, 2014 9:54:09 AM UTC-5, John Felps wrote:
>>>
>>> I have a daily task, scheduled for midnight, with a repeat of 0 and a 
>>> period of 86400 that has been running daily for about a month, but over 
>>> time it has drifted so that it starts at nearly 4 am. How do I just tell 
>>> the task to always start at midnight?
>>>
>>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: How to schedule a task to run at the same time every day

2014-02-21 Thread John Felps
Can I use it on the page appadmin/insert/db/scheduler_task?
If so, where does it go?
There are no fields called "trunk"

On Friday, February 21, 2014 8:47:15 AM UTC-7, Niphlod wrote:
>
> it's a parameter (available in trunk), not an argument.
>
> On Friday, February 21, 2014 4:29:35 PM UTC+1, John Felps wrote:
>>
>> Thanks for the quick reply. When I try to add 
>> prevent_drift=True to the args in 
>> appadmin/insert/db/scheduler_task
>> I get invalid json
>>
>> On Friday, February 21, 2014 8:15:35 AM UTC-7, Anthony wrote:
>>>
>>> As of web2py 2.8.2, you can do:
>>>
>>> scheduler.queue_task(..., prevent_drift=True)
>>>
>>> See http://web2py.com/books/default/chapter/29/04/the-core#Scheduler.
>>>
>>> Anthony
>>>
>>> On Friday, February 21, 2014 9:54:09 AM UTC-5, John Felps wrote:

 I have a daily task, scheduled for midnight, with a repeat of 0 and a 
 period of 86400 that has been running daily for about a month, but over 
 time it has drifted so that it starts at nearly 4 am. How do I just tell 
 the task to always start at midnight?

>>>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: How to schedule a task to run at the same time every day

2014-02-21 Thread John Felps
Thanks for the quick reply. When I try to add 
prevent_drift=True to the args in 
appadmin/insert/db/scheduler_task
I get invalid json

On Friday, February 21, 2014 8:15:35 AM UTC-7, Anthony wrote:
>
> As of web2py 2.8.2, you can do:
>
> scheduler.queue_task(..., prevent_drift=True)
>
> See http://web2py.com/books/default/chapter/29/04/the-core#Scheduler.
>
> Anthony
>
> On Friday, February 21, 2014 9:54:09 AM UTC-5, John Felps wrote:
>>
>> I have a daily task, scheduled for midnight, with a repeat of 0 and a 
>> period of 86400 that has been running daily for about a month, but over 
>> time it has drifted so that it starts at nearly 4 am. How do I just tell 
>> the task to always start at midnight?
>>
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: How to schedule a task to run at the same time every day

2014-02-21 Thread Anthony
As of web2py 2.8.2, you can do:

scheduler.queue_task(..., prevent_drift=True)

See http://web2py.com/books/default/chapter/29/04/the-core#Scheduler.

Anthony

On Friday, February 21, 2014 9:54:09 AM UTC-5, John Felps wrote:
>
> I have a daily task, scheduled for midnight, with a repeat of 0 and a 
> period of 86400 that has been running daily for about a month, but over 
> time it has drifted so that it starts at nearly 4 am. How do I just tell 
> the task to always start at midnight?
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.