You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Daniel Imberman (Jira)" <ji...@apache.org> on 2020/03/29 18:30:00 UTC

[jira] [Closed] (AIRFLOW-811) Bash_operator dont read multiline output

     [ https://issues.apache.org/jira/browse/AIRFLOW-811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Imberman closed AIRFLOW-811.
-----------------------------------
    Resolution: Auto Closed

> Bash_operator dont read multiline output
> ----------------------------------------
>
>                 Key: AIRFLOW-811
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-811
>             Project: Apache Airflow
>          Issue Type: Bug
>            Reporter: Jay Sen
>            Assignee: Jay Sen
>            Priority: Minor
>
> following piece of code is the root cause of it.  
> {code}
> line = ''
>                 for line in iter(sp.stdout.readline, b''):
>                     line = line.decode(self.output_encoding).strip()
>                     logging.info(line)
> {code}
> I plan to fix it using string buffer instead of just 1 line string variable here.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)