Skip to content

Instantly share code, notes, and snippets.

@kvnkho
Created May 5, 2022 06:34
Show Gist options
  • Select an option

  • Save kvnkho/9f503db2d49e0c391831b996bf657582 to your computer and use it in GitHub Desktop.

Select an option

Save kvnkho/9f503db2d49e0c391831b996bf657582 to your computer and use it in GitHub Desktop.
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