8000 Fix for revoked tasks being moved to RETRY state by leomermelstein · Pull Request #6812 · celery/celery · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix for revoked tasks being moved to RETRY state #6812

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

Merged
merged 1 commit into from
Jun 16, 2021
Merged

Fix for revoked tasks being moved to RETRY state #6812

merged 1 commit into from
Jun 16, 2021

Conversation

leomermelstein
Copy link
Contributor

#6793

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

Description

Fixes 6793. (I assume the intention here was to do nothing if we do have a connection but self._already_revoked, not to _anounce_cancelled in that case as in the orginal code, which would wrongly move the state to RETRY.)

8000
@lgtm-com
Copy link
lgtm-com bot commented Jun 15, 2021

This pull request fixes 2 alerts when merging be12d15 into 5d72aee - view on LGTM.com

fixed alerts:

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

@auvipy auvipy added this to the 5.1.x milestone Jun 16, 2021
@codecov
Copy link
codecov bot commented Jun 16, 2021

Codecov Report

Merging #6812 (be12d15) into master (5d72aee) will decrease coverage by 0.00%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6812      +/-   ##
==========================================
- Coverage   70.73%   70.72%   -0.01%     
==========================================
  Files         138      138              
  Lines       16605    16606       +1     
  Branches     2094     2095       +1     
==========================================
  Hits        11745    11745              
  Misses       4663     4663              
- Partials      197      198       +1     
Flag Coverage Δ
unittests 70.72% <66.66%> (-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.68% <66.66%> (-0.23%) ⬇️

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 5d72aee...be12d15. Read the comment docs.

@auvipy auvipy merged commit 82f76d9 into celery:master Jun 16, 2021
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.

2 participants
0