Skip to content

Instantly share code, notes, and snippets.

@anna-geller
Created January 6, 2022 20:06
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/42cd6411f3cb14deee298dfb8c414506 to your computer and use it in GitHub Desktop.
Save anna-geller/42cd6411f3cb14deee298dfb8c414506 to your computer and use it in GitHub Desktop.
from prefect import Flow, Parameter, task
@task(log_stdout=True)
def print_param_value(param_value):
print(param_value)
with Flow("parameter-anti-pattern") as flow:
dummy_parameter = Parameter("dummy")
print_param_value(dummy_parameter)
if __name__ == "__main__":
flow.run(parameters=dict(dummy="some_value"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment