Advertisement
Guest User

Untitled

a guest
Mar 24th, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. class DatastoreExportOperator(BaseOperator):
  2. """ (...) """
  3. @apply_defaults
  4. def __init__(self,
  5. bucket,
  6. namespace=None,
  7. datastore_conn_id='google_cloud_default',
  8. (...)
  9. overwrite_existing=False,
  10. *args,
  11. **kwargs):
  12. super(DatastoreExportOperator, self).__init__(*args, **kwargs)
  13. self.datastore_conn_id = datastore_conn_id
  14. (...)
  15. if kwargs.get('xcom_push') is not None:
  16. raise AirflowException("'xcom_push' was deprecated, use 'BaseOperator.do_xcom_push' instead")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement