[web2py] Re: Google GAE Task Queue independence

2011-03-16 Thread Carl
thanks christian. hearing how you use cron *with* taskqueue is very helpful On Mar 14, 9:05 pm, howesc how...@umich.edu wrote: Carl, i use taskqueue when i need to process more rows than i can in the limit (which was 30 seconds, now is 10 minutes for taskqueue tasks).  For things like

[web2py] Re: Google GAE Task Queue independence

2011-03-14 Thread Carl
two more questions... what made you choose taskqueue over cron? I see from your sample snippet of code that taskqueue will stop being called when you are sure all rows are processed. How you do kick-start the process again? and how does it know that a existing taskqueue loop isn't already

[web2py] Re: Google GAE Task Queue independence

2011-03-14 Thread howesc
Carl, i use taskqueue when i need to process more rows than i can in the limit (which was 30 seconds, now is 10 minutes for taskqueue tasks). For things like reporting aggregations that i need to run daily, i have a wrapper function that is called via cron that adds the call of the processing

[web2py] Re: Google GAE Task Queue independence

2011-03-13 Thread dlypka
Here is the traceback: Traceback (most recent call last): File c:\Google\AppEngine\esentrnet\gluon\restricted.py, line 188, in restricted exec ccode in environment File c:\Google\AppEngine\esentrnet\applications\init/controllers/ default.py:upbm2gig, line 246, in module File

[web2py] Re: Google GAE Task Queue independence

2011-03-12 Thread dlypka
FYI:I found a *GOTCHA* issue when upgrading to 1.92.3 from 1.77.3 Now you have to use .xml() on the URL() that you send into the GAE API: upload_url = blobstore.create_upload_url(URL(r=request,c='default',f='upbm2gig_gaehandler',args=None).xml()) # This works upload_url =

[web2py] Re: Google GAE Task Queue independence

2011-03-12 Thread Massimo Di Pierro
I would use ...blobstore.create_upload_url(str(URL(r=request,c='default',f='upbm2gig_gaehandle r',args=None))) On Mar 12, 9:55 am, dlypka dly...@gmail.com wrote: FYI:I found a *GOTCHA* issue when upgrading to 1.92.3 from 1.77.3 Now you have to use .xml() on the URL() that you send into the

Re: [web2py] Re: Google GAE Task Queue independence

2011-03-12 Thread Carl Roach
Thanks for the tip - that saves me GAE debugging time - always welcomed. The Web2py guys take backward compatiblilty v. seriously so there must be a reasonable reason for this change. I've searched GoogleGroups but couldn't find past threads but the search isn't great and I turned nothing up.

[web2py] Re: Google GAE Task Queue independence

2011-03-12 Thread Massimo Di Pierro
I do not think we ever said URL returns a string. We did this change in a way that did not break any example in the book. I will look more carefully at your example and treat it as a web2py bug. I am sure we can make it work. Can you post the complete traceback? Massimo On Mar 12, 11:12 am,

[web2py] Re: Google GAE Task Queue independence

2011-03-12 Thread howesc
i too wrestled with that change, but something convinced me that i was taking advantage of an 'unintended feature' so i just fixed my apps and moved on. i will say that massimo has done an excellent job overall of keeping things compatible, we just run into these undocumented, unintended

[web2py] Re: Google GAE Task Queue independence

2011-03-11 Thread howesc
i use taskqueue extensively in my GAE apps. i have not wrapped it in a way that it runs in non-gae environment. My usages of the taskqueue are for things that i can't complete in a single 30 second execution time, so i suppose i could put an 'if not GAE run all the processing in one request'

Re: [web2py] Re: Google GAE Task Queue independence

2011-03-11 Thread Carl Roach
thanks howesc On 11 Mar 2011, at 23:29, howesc how...@umich.edu wrote: i use taskqueue extensively in my GAE apps. i have not wrapped it in a way that it runs in non-gae environment. My usages of the taskqueue are for things that i can't complete in a single 30 second execution time, so