Skip to content

Commit

Permalink
Fixes #30. End task when finished with errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
piffall committed Mar 24, 2023
1 parent 42d9416 commit 0418f96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions airflow_pentaho/operators/carte.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,3 +205,7 @@ def execute(self, context): # pylint: disable=unused-argument
if 'error_desc' in status and status['error_desc']:
self.log.error(self.LOG_TEMPLATE, status['error_desc'], self.trans)
raise AirflowException(status['error_desc'])

if status_desc in self.ERRORS_STATUSES:
self.log.error(self.LOG_TEMPLATE, status['status_desc'], self.trans)
raise AirflowException(status['status_desc'])
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

setup(
name='airflow-pentaho-plugin',
version='1.0.20',
version='1.0.21',
license='Apache 2.0',
author='Damavis',
author_email='[email protected]',
Expand Down

0 comments on commit 0418f96

Please sign in to comment.