Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Feb 2, 2020

Conversation

osule
Copy link
Contributor

@osule osule commented Jan 30, 2020

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.


Issue link: AIRFLOW-6686

Make sure to mark the boxes below before creating PR: [x]

  • Description above provides context of the change
  • Commit message/PR title starts with [AIRFLOW-NNNN]. AIRFLOW-NNNN = JIRA ID*
  • Unit tests coverage for changes (not needed for documentation changes)
  • Commits follow "How to write a good git commit message"
  • Relevant documentation is updated including usage instructions.
  • I will engage committers as explained in Contribution Workflow Example.

* For document-only changes commit message can start with [AIRFLOW-XXXX].


In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.
Read the Pull Request Guidelines for more information.

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.
@osule osule changed the title Fix syntax error constructing list of process ids [AIRFLOW-6686] Fix syntax error constructing list of process ids Jan 30, 2020
@mik-laj
Copy link
Member

mik-laj commented Jan 31, 2020

Travis is sad. I restarted failed jobs.

@codecov-io
Copy link

Codecov Report

Merging #7298 into master will increase coverage by 1.74%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7298      +/-   ##
==========================================
+ Coverage   83.85%   85.59%   +1.74%     
==========================================
  Files         863      863              
  Lines       40488    40509      +21     
==========================================
+ Hits        33951    34675     +724     
+ Misses       6537     5834     -703
Impacted Files Coverage Δ
airflow/utils/helpers.py 82.5% <ø> (ø) ⬆️
...w/providers/apache/hive/operators/mysql_to_hive.py 0% <0%> (-100%) ⬇️
airflow/security/kerberos.py 30.43% <0%> (-45.66%) ⬇️
airflow/providers/mysql/operators/mysql.py 55% <0%> (-45%) ⬇️
...irflow/example_dags/example_kubernetes_executor.py 50% <0%> (-30.96%) ⬇️
...example_dags/example_kubernetes_executor_config.py 44.82% <0%> (-23.6%) ⬇️
airflow/providers/apache/hive/hooks/hive.py 76.02% <0%> (-1.54%) ⬇️
airflow/models/connection.py 76.44% <0%> (-0.97%) ⬇️
airflow/hooks/dbapi_hook.py 90.9% <0%> (-0.83%) ⬇️
airflow/jobs/scheduler_job.py 89.19% <0%> (-0.15%) ⬇️
... and 241 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 83c0378...d688126. Read the comment docs.

@mik-laj mik-laj merged commit d1cedc4 into apache:master Feb 2, 2020
kaxil pushed a commit that referenced this pull request Feb 3, 2020
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 d1cedc4)
galuszkak pushed a commit to FlyrInc/apache-airflow that referenced this pull request Mar 5, 2020
…che#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants