Created
January 6, 2022 20:06
-
-
Save anna-geller/42cd6411f3cb14deee298dfb8c414506 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 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