eladkal commented on code in PR #22758:
URL: https://github.com/apache/airflow/pull/22758#discussion_r849820953
##########
airflow/providers/amazon/aws/operators/s3.py:
##########
@@ -318,6 +318,94 @@ def execute(self, context: 'Context'):
)
+class S3CreateObjectOperator(BaseOperator):
+ """
+ Creates a new object from a given string or bytes.
Review Comment:
@ferruzzi The difference is that in your PythonOperator example
`requests.get(DATA_URL)` is inside the python callable thus executed only when
the task is executed while in the `S3CreateObjectOperator` the
`requests.get(DATA_URL)` will be executed every time the dag is parsed.
What you wrote should be in fact`HttpToS3Operator` which is a transfer
operator. The `S3CreateObjectOperator` as shown here is not transfer operator.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]