You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Kaxil Naik (Jira)" <ji...@apache.org> on 2020/02/22 00:01:00 UTC
[jira] [Closed] (AIRFLOW-6771) Error in formatting in
_collect_errors
[ https://issues.apache.org/jira/browse/AIRFLOW-6771?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kaxil Naik closed AIRFLOW-6771.
-------------------------------
Resolution: Implemented
Already fixed in master and 1.10.10
> Error in formatting in _collect_errors
> --------------------------------------
>
> Key: AIRFLOW-6771
> URL: https://issues.apache.org/jira/browse/AIRFLOW-6771
> Project: Apache Airflow
> Issue Type: Bug
> Components: DagRun
> Affects Versions: 1.9.0
> Reporter: Gregory Golberg
> Priority: Major
>
> In airflow/jobs.py, in _collect_errors() method (on [line 2323|https://github.com/apache/airflow/blob/v1-9-stable/airflow/jobs.py#L2323] the code is
> {code}
> @provide_session
> def _collect_errors(self, ti_status, session=None):
> err = ''
> if ti_status.failed:
> err += (
> "---------------------------------------------------\n"
> "Some task instances failed:\n%s".format(ti_status.failed))
> {code}
> But that just results in %s -- last line should be instead
> {code}
> "Some task instances failed:\n{}".format(ti_status.failed))
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)