Skip to content

Commit

Permalink
* CloudDatastoreImportEntitiesOperator : Remove xcom_push. Please…
Browse files Browse the repository at this point in the history
… use `BaseOperator.do_xcom_push` (#23252)

* `CloudDatastoreExportEntitiesOperator` : Remove `xcom_push`. Please use `BaseOperator.do_xcom_push`
  • Loading branch information
eladkal committed Apr 26, 2022
1 parent 2d569fd commit 710eb6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions airflow/providers/google/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ Breaking changes

* ``DataprocSubmitJobOperator``: order of parameters has changed.

* ``CloudDatastoreImportEntitiesOperator`` : Remove ``xcom_push``. Please use ``BaseOperator.do_xcom_push``

* ``CloudDatastoreExportEntitiesOperator`` : Remove ``xcom_push``. Please use ``BaseOperator.do_xcom_push``

6.8.0
.....

Expand Down
4 changes: 0 additions & 4 deletions airflow/providers/google/cloud/operators/datastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ def __init__(
self.overwrite_existing = overwrite_existing
self.project_id = project_id
self.impersonation_chain = impersonation_chain
if kwargs.get('xcom_push') is not None:
raise AirflowException("'xcom_push' was deprecated, use 'BaseOperator.do_xcom_push' instead")

def execute(self, context: 'Context') -> dict:
self.log.info('Exporting data to Cloud Storage bucket %s', self.bucket)
Expand Down Expand Up @@ -218,8 +216,6 @@ def __init__(
self.polling_interval_in_seconds = polling_interval_in_seconds
self.project_id = project_id
self.impersonation_chain = impersonation_chain
if kwargs.get('xcom_push') is not None:
raise AirflowException("'xcom_push' was deprecated, use 'BaseOperator.do_xcom_push' instead")

def execute(self, context: 'Context'):
self.log.info('Importing data from Cloud Storage bucket %s', self.bucket)
Expand Down

0 comments on commit 710eb6f

Please sign in to comment.