Created
May 5, 2022 06:34
-
-
Save kvnkho/9f503db2d49e0c391831b996bf657582 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| @task() | |
| def hello_task(name_input): | |
| raise ValueError() | |
| return name_input | |
| @flow | |
| def hello_flow(): | |
| x = hello_task("kevin") | |
| if isinstance(x.result(),ValueError): | |
| print("reached here") | |
| hello_flow() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment