Skip to content

Commit

Permalink
Update dataproc.py
Browse files Browse the repository at this point in the history
Adding DataprocBatchLink.persist to display link for createbatch operator
  • Loading branch information
kandharvishnu committed Jul 8, 2024
1 parent be27182 commit c7f1db7
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 c7f1db7

Please sign in to comment.