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 12:15:16 PM UTC+1, Tim Richardson wrote: > > > > 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 (insert into table) it was ok to pass things as > strings, and while I caught the function name, I did not notice that my > pvars was a dict hiding in a string. Using a real dict solved the problem. > -- --- 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/groups/opt_out.

