Skip to content

Commit

Permalink
Update dataproc.py (#40643)
Browse files Browse the repository at this point in the history
Adding DataprocBatchLink.persist to display link for createbatch operator
  • Loading branch information
kandharvishnu authored Jul 8, 2024
1 parent 03b1840 commit f12714d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions airflow/providers/google/cloud/operators/dataproc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3055,6 +3055,13 @@ def execute(self, context: Context):
self.log.info("Batch %s created", self.batch_id)

else:
DataprocBatchLink.persist(
context=context,
operator=self,
project_id=self.project_id,
region=self.region,
batch_id=self.batch_id,
)
return self.operation.operation.name

else:
Expand Down

0 comments on commit f12714d

Please sign in to comment.