scheduler.queue_task(task_add, pvars=dict(a=1, b=2))
Hi. It is not necessary to have task_add in same file, where scheduler initialiazed. Your solution with "current" is right. Add tasks and queue them anywhere!
def modfuncx(u, y,z):
fdir,fn,ext = compute(y,z)
tid = current.scheduler.queue_task('play_fetch', pvars={'uval': u, 'path': fdir+fn+ext}, timeout=1200)
return fn, ext