Skip to content

Commit

Permalink
Fix PythonVirtualenvOperator tests (#36367)
Browse files Browse the repository at this point in the history
(cherry picked from commit af4b51c)
  • Loading branch information
dolfinus authored and ephraimbuddy committed Jan 11, 2024
1 parent d80d6a1 commit 8317580
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions airflow/operators/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,9 @@ def _execute_python_callable_in_subprocess(self, python_path: Path):
else:
raise

if 0 in self.skip_on_exit_code:
raise AirflowSkipException("Process exited with code 0. Skipping.")

return self._read_result(output_path)

def determine_kwargs(self, context: Mapping[str, Any]) -> Mapping[str, Any]:
Expand Down

0 comments on commit 8317580

Please sign in to comment.