Skip to content

Commit

Permalink
Add job failure handler
Browse files Browse the repository at this point in the history
  • Loading branch information
phanikumv committed Jun 20, 2023
1 parent cd746c9 commit 3bedbb9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions airflow/providers/google/cloud/operators/bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ def execute(self, context: Context) -> None: # type: ignore[override]
method_name="execute_complete",
)
self._handle_job_error(job)
self.log.info("Current state of job %s is %s", job.job_id, job.state)

@staticmethod
def _handle_job_error(job: BigQueryJob | UnknownJob) -> None:
Expand Down

0 comments on commit 3bedbb9

Please sign in to comment.