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

ASF subversion and git services commented on AIRFLOW-6686:
----------------------------------------------------------

Commit 3fde9204aa2ca386968e7d6f900325a23f184cc3 in airflow's branch 
refs/heads/v1-10-test from Oluwafemi Sule
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=3fde920 ]

[AIRFLOW-6686] Fix syntax error constructing list of process ids (#7298)

Construction of list of pids passed in kill command raises a Syntax error 
because
ordering of the arguments to `map` function doesn't conform to function
parameter definition.

A list comprehension replaces the existing `map` function to make the code
forward compatible with Python 3 and at the same time expand to a list of pids.

(cherry picked from commit d1cedc4f691e683bf1ed54aee3a2c1a54013bbb3)


> Syntax error constructing list of process ids
> ---------------------------------------------
>
>                 Key: AIRFLOW-6686
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-6686
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: utils
>    Affects Versions: 1.10.7
>            Reporter: Oluwafemi Sule
>            Assignee: Oluwafemi Sule
>            Priority: Major
>             Fix For: 1.10.8
>
>
> There is Syntax error constructing list of process ids used in process 
> termination command.
> The Syntax error results from wrong ordering of arguments to builtin map 
> function.
> [https://github.com/apache/airflow/blob/master/airflow/utils/helpers.py#L214]



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

Reply via email to