[web2py] Re: scheduler question, how to use queue_task?

2013-03-07 Thread Niphlod
seems perfectly legit in the snippet, maybe there's something else in your complete code. Can you inspect the errors returned by queue_task (i.e. print result_ID and see what does it contain) ? On Thursday, March 7, 2013 11:34:23 AM UTC+1, Tim Richardson wrote: I have an app using the

[web2py] Re: scheduler question, how to use queue_task?

2013-03-07 Thread LightDot
I believe I just stumbled on the same problem last night. I was upgrading an app with an old scheduler (1.99.2) to current (2.4.2). I temporarily solved it by continuing to insert the db record manually, as I needed to finish this quickly and had no time to troubleshoot... I'll be able to do

[web2py] Re: scheduler question, how to use queue_task?

2013-03-07 Thread Tim Richardson
On Thursday, 7 March 2013 21:49:12 UTC+11, Niphlod wrote: seems perfectly legit in the snippet, maybe there's something else in your complete code. Can you inspect the errors returned by queue_task (i.e. print result_ID and see what does it contain) ? My bad. Under the old way

[web2py] Re: scheduler question, how to use queue_task?

2013-03-07 Thread Niphlod
pargs and pvars are automatically json-encoded, but needs to be real python objects. If you want to pass strings already converted use args='...' and vars='...' but the whole point of queue_task is to avoid repetition (e.g. json.dumps(this), json.dumps(that)) On Thursday, March 7, 2013

[web2py] Re: scheduler question, how to use queue_task?

2013-03-07 Thread LightDot
Right, my vars dicts seemed a bit odd when I looked at them, now I know why ;) Same thing bit me, apparently. Thanks for reporting back! Regards, Ales On Thursday, March 7, 2013 12:15:16 PM UTC+1, Tim Richardson wrote: On Thursday, 7 March 2013 21:49:12 UTC+11, Niphlod wrote: seems