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

Fix #6844 by allowing safe queries via app.inspect().active(). #6849

Merged
merged 3 commits into from
Jul 9, 2021

Conversation

djungic
Copy link
Contributor

@djungic djungic commented Jul 8, 2021

Note: Before submitting this pull request, please review our contributing
guidelines
.

Description

Restores the safe option to app.control.inspect.active. This affords querying active tasks from context that might not be able to deserialize task arguments. See #6844 for details and when the breakage occurred.

@lgtm-com
Copy link

lgtm-com bot commented Jul 8, 2021

This pull request introduces 2 alerts when merging f2d2f90 into e885a47 - view on LGTM.com

new alerts:

  • 1 for Unused import
  • 1 for Module is imported with 'import' and 'import from'

Copy link
Member

@auvipy auvipy left a comment

Choose a reason for hiding this comment

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

please check the build failures

@djungic djungic requested a review from auvipy July 9, 2021 11:37
@auvipy
Copy link
Member

auvipy commented Jul 9, 2021

tests are still failing

@codecov
Copy link

codecov bot commented Jul 9, 2021

Codecov Report

Merging #6849 (d027be2) into master (e972aff) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #6849   +/-   ##
=======================================
  Coverage   79.20%   79.21%           
=======================================
  Files         138      138           
  Lines       16612    16616    +4     
  Branches     2097     2097           
=======================================
+ Hits        13158    13162    +4     
  Misses       3227     3227           
  Partials      227      227           
Flag Coverage Δ
unittests 79.21% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
celery/worker/request.py 96.89% <ø> (ø)
celery/app/control.py 91.36% <100.00%> (ø)
celery/worker/control.py 95.51% <100.00%> (ø)
celery/backends/base.py 93.40% <0.00%> (+0.04%) ⬆️

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 e972aff...d027be2. Read the comment docs.

@auvipy auvipy merged commit 1b67ccd into celery:master Jul 9, 2021
@auvipy
Copy link
Member

auvipy commented Jul 9, 2021

thanks!

@auvipy auvipy added this to the 5.1.x milestone Jul 9, 2021
jeyrce pushed a commit to jeyrce/celery that referenced this pull request Aug 25, 2021
…elery#6849)

* Fix celery#6844 by allowing safe (i.e. skip arg derserialization) queries via app.inspect().active().

* Fix default active arg test expectation.

* Fix test asserting broken behaviour (arg/kwarg deserialization occuring when safe=True).

Co-authored-by: Damir Jungic <djungic@cisco.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants