airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jayesh (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRFLOW-811) Bash_operator dont read multiline output
Date Thu, 02 Nov 2017 21:00:04 GMT

    [ https://issues.apache.org/jira/browse/AIRFLOW-811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16236594#comment-16236594
] 

Jayesh commented on AIRFLOW-811:
--------------------------------

this turn out to be more changes than simply taking care of bug in for loop.
https://github.com/apache/incubator-airflow/pull/2026

> 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: Jayesh
>            Assignee: Jayesh
>            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
(v6.4.14#64029)

Mime
View raw message