Matt
10/01/2020, 11:12 PMnicholas
Matt
10/01/2020, 11:19 PMChris White
.run()
method that routes inputs directly to the task as a python function. E.g.
@task
def my_task(x, y):
return x + y
assert my_task.run(1, 2) == 3
if you reference things like prefect.context
within your task, you might have to set up some scaffolding:
with prefect.context(my_special_key=value):
my_task.run(1, 2)
but that’s on a case-by-case basisMatt
10/02/2020, 12:02 AMChris White
Matt
10/02/2020, 12:43 AMChris White
Marvin
10/02/2020, 2:39 AMPedro Machado
10/02/2020, 2:41 AMChris White
flow.get_tasks
method