[web2py] Re: scheduler - Get task id for current task

2013-09-05 Thread Niphlod
whoopsie, sorry: I thought that was documented :D /me takes a note and adds to the todo-list On Thursday, September 5, 2013 12:46:39 PM UTC+2, Manoj Kumar M wrote: > > Well, after some digging into source code I found the solution. In > gluon/scheduler.py, > > def executor(queue, task, out): >

[web2py] Re: scheduler - Get task id for current task

2013-09-05 Thread Manoj Kumar M
Well, after some digging into source code I found the solution. In gluon/scheduler.py, def executor(queue, task, out): W2P_TASK = Storage({'id' : task.task_id, 'uuid' : task.uuid}) _env.update({'W2P_TASK' : W2P_TASK}) W2P_TASK is an environment variable. So, to get the task id, task_