from prefect import Flow, task
@task
def abc(x):
return x
@task
def bcd(x):
return x
with Flow("..") as flow:
a = abc(1)
b = bcd(1)
print(flow.tasks)
print(list(flow.tasks)[0].name)
And then find the one with the name you want? But I think you can just test the task directly?
l
Lana Dann
05/04/2022, 8:02 PM
hmm, i know the name of the task i want to test but i don’t know how to test running that task specifically. i guess i can just import the task directly and run it? if you have
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.