You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ahidalgob (via GitHub)" <gi...@apache.org> on 2023/06/28 15:31:52 UTC

[GitHub] [airflow] ahidalgob commented on a diff in pull request #29462: Deferrable mode for S3ToGCSOperator

ahidalgob commented on code in PR #29462:
URL: https://github.com/apache/airflow/pull/29462#discussion_r1243913011


##########
docs/apache-airflow-providers-google/operators/transfer/s3_to_gcs.rst:
##########
@@ -37,6 +37,16 @@ to transfer data from Amazon S3 to Google Cloud Storage.
     :start-after: [START howto_transfer_s3togcs_operator]
     :end-before: [END howto_transfer_s3togcs_operator]
 
+There is a possibility to start S3ToGCSOperator asynchronously using deferrable mode. To do so just add parameter
+``deferrable=True`` into the operator call. Under the hood it will delegate data transfer to Google Cloud Storage
+Transfer Service. By changing parameter ``poll_interval=10`` you can control frequency of polling a transfer
+job status.
+
+.. exampleinclude::/../tests/system/providers/google/cloud/gcs/example_s3_to_gcs_async.py
+    :language: python
+    :start-after: [START howto_transfer_s3togcs_operator]

Review Comment:
   I think we need to use a different tag in here, don't we? `howto_transfer_s3togcs_operator_async` and also update `example_s3_to_gcs_async.py`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org