Skip to content

Reintroduce docstrings in programmatic start#6825

Merged
auvipy merged 1 commit into
celery:masterfrom
alesolda:bugfix/reintroduce-docstring-programmatic-start
Jun 28, 2021
Merged

Reintroduce docstrings in programmatic start#6825
auvipy merged 1 commit into
celery:masterfrom
alesolda:bugfix/reintroduce-docstring-programmatic-start

Conversation

@alesolda

Copy link
Copy Markdown
Contributor

Description

Programmatic start (code and unittests) was removed due to
01651d2 and reintroduced
in #6481.

Resolves: #6730
Relates: #6481 #6404

 * reintroduce sys.argv default behaviour for "start" (as was
   commented for "worker_main" in celery#6481 (comment)
 * reintroduce docstrings for "start" and "worker_main" methods
 * reintroduce and adapt tests for "start" and "worker_main"

Programmatic start (code and unittests) was removed due to
01651d2 and reintroduced
in celery#6481.

Resolves: celery#6730
Relates: celery#6481 celery#6404
@codecov

codecov Bot commented Jun 27, 2021

Copy link
Copy Markdown

Codecov Report

Merging #6825 (a976655) into master (117cd9c) will increase coverage by 3.31%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6825      +/-   ##
==========================================
+ Coverage   75.83%   79.15%   +3.31%     
==========================================
  Files         138      138              
  Lines       16608    16610       +2     
  Branches     2096     2097       +1     
==========================================
+ Hits        12595    13147     +552     
+ Misses       3795     3236     -559     
- Partials      218      227       +9     
Flag Coverage Δ
unittests 79.15% <100.00%> (+3.31%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
celery/app/base.py 60.22% <100.00%> (+1.29%) ⬆️
celery/bin/shell.py 28.16% <0.00%> (+28.16%) ⬆️
celery/bin/purge.py 32.25% <0.00%> (+32.25%) ⬆️
celery/bin/upgrade.py 38.46% <0.00%> (+38.46%) ⬆️
celery/bin/amqp.py 39.45% <0.00%> (+39.45%) ⬆️
celery/bin/control.py 40.00% <0.00%> (+40.00%) ⬆️
celery/bin/list.py 40.90% <0.00%> (+40.90%) ⬆️
celery/bin/events.py 41.30% <0.00%> (+41.30%) ⬆️
celery/bin/beat.py 42.30% <0.00%> (+42.30%) ⬆️
... and 7 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 117cd9c...a976655. Read the comment docs.

@lgtm-com

lgtm-com Bot commented Jun 27, 2021

Copy link
Copy Markdown

This pull request introduces 1 alert and fixes 2 when merging a976655 into 117cd9c - view on LGTM.com

new alerts:

  • 1 for Unused import

fixed alerts:

  • 1 for Non-exception in 'except' clause
  • 1 for Module is imported with 'import' and 'import from'

@maybe-sybr maybe-sybr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - failing checks are likely the same ones which are busted on master right now. Happy for this to land in 5.1.x

@maybe-sybr maybe-sybr added this to the 5.1.x milestone Jun 28, 2021
@auvipy
auvipy merged commit 494cc5d into celery:master Jun 28, 2021
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.

Missing Documentation: celery.Celery.worker_main

4 participants