Liam Coatman
04/12/2021, 10:51 AM@solid
def flakes():
try:
flakey_operation()
except:
raise RetryRequested(max_retries=3)
And so from my notebook I would like to do something like
dagstermill.yield_event(RetryRequested(max_retries=3))
However, this isn't allowed because the argument to yield_event
is of type Union[dagster.Materialization, dagster.ExpectationResult, dagster.TypeCheck, dagster.Failure]
. Is there a workaround for this? Or more generally, is this the correct pattern for retrying a notebook or is there a better approach?
Thanks!
cc: @victoralex
04/12/2021, 3:06 PMDagster Bot
04/12/2021, 3:06 PMalex
04/12/2021, 3:07 PMmax
04/12/2021, 4:37 PMLiam Coatman
04/12/2021, 4:45 PMvictor
04/13/2021, 9:30 AMRetryRequested
to the allowed types in the runtime type check of Manager.yield_event
or does it need more work in the papermill solid driver?alex
04/13/2021, 2:26 PMLiam Coatman
04/13/2021, 5:03 PM