Is it possible to get the task id of the current task from within the task?
for example:
def task_add(a,b):
task_id = scheduler.my_id() # get current task id
return a+b
scheduler = Scheduler(db, tasks=dict(demo1=task_add))
scheduler.queue_task('demo1', pvars=dict(a=1,b=2),
repeats = 0, period = 180)
--
---
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.