Created
December 19, 2021 16:36
-
-
Save anna-geller/646c339f5fdd92e158f83343e90f01b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from prefect import task, Flow, Parameter | |
@task(log_stdout=True) | |
def plus_one(x): | |
print(x + 1) | |
with Flow("parametrized_flow") as flow: | |
param = Parameter("x", default=1) | |
plus_one(x=param) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment