Skip to content

Commit

Permalink
Fix PythonVirtualenvOperator tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfinus committed Dec 22, 2023
1 parent fd86fae commit 86c439c
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 86c439c

Please sign in to comment.