Skip to content

Instantly share code, notes, and snippets.

@anna-geller
Created December 19, 2021 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anna-geller/646c339f5fdd92e158f83343e90f01b7 to your computer and use it in GitHub Desktop.
Save anna-geller/646c339f5fdd92e158f83343e90f01b7 to your computer and use it in GitHub Desktop.
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