Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion airflow/providers/google/cloud/operators/dataproc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,7 @@ def execute_complete(self, context, event=None) -> None:
if job_state == JobStatus.State.CANCELLED:
raise AirflowException(f"Job was cancelled:\n{job_id}")
self.log.info("%s completed successfully.", self.task_id)
return job_id

def on_kill(self) -> None:
"""
Expand Down Expand Up @@ -1899,7 +1900,6 @@ def execute(self, context: Context):
job_id=new_job_id, region=self.region, project_id=self.project_id, timeout=self.wait_timeout
)
self.log.info("Job %s completed successfully.", new_job_id)

return self.job_id

def execute_complete(self, context, event=None) -> None:
Expand All @@ -1915,6 +1915,7 @@ def execute_complete(self, context, event=None) -> None:
if job_state == JobStatus.State.CANCELLED:
raise AirflowException(f"Job was cancelled:\n{job_id}")
self.log.info("%s completed successfully.", self.task_id)
return job_id

def on_kill(self):
if self.job_id and self.cancel_on_kill:
Expand Down