Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -2484,13 +2484,13 @@ def handle_batch_status(
link = DATAPROC_BATCH_LINK.format(region=self.region, project_id=self.project_id, batch_id=batch_id)
if state == Batch.State.FAILED:
raise AirflowException(
f"Batch job {batch_id} failed with error: {state_message}\nDriver Logs: {link}"
f"Batch job {batch_id} failed with error: {state_message}.\nDriver logs: {link}"
)
if state in (Batch.State.CANCELLED, Batch.State.CANCELLING):
raise AirflowException(f"Batch job {batch_id} was cancelled. Driver logs: {link}")
raise AirflowException(f"Batch job {batch_id} was cancelled.\nDriver logs: {link}")
if state == Batch.State.STATE_UNSPECIFIED:
raise AirflowException(f"Batch job {batch_id} unspecified. Driver logs: {link}")
self.log.info("Batch job %s completed. Driver logs: %s", batch_id, link)
raise AirflowException(f"Batch job {batch_id} unspecified.\nDriver logs: {link}")
self.log.info("Batch job %s completed.\nDriver logs: %s", batch_id, link)

def retry_batch_creation(
self,
Expand Down
Loading