kevin
03/26/2021, 4:39 PMJim Crist-Harif
03/26/2021, 4:42 PMJim Crist-Harif
03/26/2021, 4:42 PMtask.run inside the task, not task() itself.kevin
03/26/2021, 4:43 PM@task
do stuff():
if more_stuff:
stuff_task.run()Jim Crist-Harif
03/26/2021, 4:43 PM@task
def task1(a, b):
return a + b
@task
def task2(a, b, c):
return task1.run(a, b) + ckevin
03/26/2021, 4:43 PMkevin
03/26/2021, 4:43 PMkevin
03/26/2021, 4:44 PMkevin
03/26/2021, 4:45 PMJim Crist-Harif
03/26/2021, 4:46 PMkevin
03/26/2021, 4:46 PMkevin
03/26/2021, 4:46 PMkevin
03/26/2021, 4:47 PMreturn task.run() or if I can do a task.run() followed by signal.SOMETHINGJim Crist-Harif
03/26/2021, 4:48 PMtask.run calls the undecorated task function directly (the function you wrote before the task decorator was applied). But I'd recommend keeping things simple.kevin
03/26/2021, 4:49 PMkevin
03/26/2021, 4:49 PMkevin
03/26/2021, 4:49 PM