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 2021/07/16 16:02:37 UTC
[GitHub] [airflow] EtsuNDmA commented on issue #15952: DockerOperator tries to push bytes to XCom, fails to serialize
EtsuNDmA commented on issue #15952:
URL: https://github.com/apache/airflow/issues/15952#issuecomment-881554529
https://github.com/apache/airflow/blob/bc004151ed6924ee7bec5d9d047aedb4873806da/airflow/providers/docker/operators/docker.py#L316
I think we should cast self.cli.logs() to string, rather then encoding the line:
```python
ret = self.cli.logs(container=self.container['Id']).decode('utf-8') if self.xcom_all else line
```
--
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