Max Jackson
06/07/2022, 8:51 PM@task(key=value)
within a structure like
class MyNewTask(Task):
def run():
pass
where would I pass those key/value pairs when initializing the new capital-T Task?Kevin Kho
06/07/2022, 8:58 PMmnt = MyNewTask(key=value)
with Flow(..) as flow:
mnt()
If that doesn’t work, look at this task from the task library. Specifically, note how **kwargs
is passed to super.init()
. You might need this in your Task definition I think. Or it might just work.Max Jackson
06/07/2022, 9:00 PM