Yash
12/17/2021, 7:51 AMYash
12/17/2021, 9:57 AMAnna Geller
Anna Geller
from prefect import task, Flow, Parameter
@task(log_stdout=True)
def print_plus_one(x):
print(x + 1)
with Flow('Parameterized Flow') as flow:
x = Parameter('x', default = 2)
print_plus_one(x=x)
Once you register this flow, you can change the parameter value from 2 to something else at runtime in the UIKevin Kho
Run
button and it lets you replace you parameters