You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/11/03 10:18:25 UTC
[GitHub] [airflow] dima-lyublin commented on issue #26534: Can't override attributes on task_policy on 2.4
dima-lyublin commented on issue #26534:
URL: https://github.com/apache/airflow/issues/26534#issuecomment-1301889362
I have a similar issue in Airflow 2.4.2:
```
def create_hooks(self):
self.s3_hook = S3Hook(aws_conn_id=self.s3_conn_id)
self.s3_hook.extra_args = {"ContentType": content_type}
```
```
ERROR - Task failed with exception
Traceback (most recent call last):
File "", line 57, in execute
self.s3_hook.extra_args = {"ContentType": content_type}
AttributeError: can't set attribute
```
--
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