Skip to content

failure_hook not called in testing #4046

Answered by ahoneycutt
ahoneycutt asked this question in Q&A
Discussion options

You must be logged in to vote

The answer here is to pass raise_on_error=False to the call to execute_pipeline, i.e. execute_pipeline(pipeline=self.pipeline, mode='test', raise_on_error=False) as the pipeline was halting when the solid raised an exception.

By default, as mentioned by the Dagster team, raise_on_error is True in the execute_pipeline command (and only available to toggle here), and the default behavior for pipeline execution is otherwise equivalent False everywhere else.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ahoneycutt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant