Repository navigation
Terminate job implementation for eventlet concurrency backend - #6917
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6917 +/- ##
=======================================
Coverage 89.20% 89.21%
=======================================
Files 138 138
Lines 16654 16678 +24
Branches 2106 2107 +1
=======================================
+ Hits 14857 14880 +23
+ Misses 1578 1577 -1
- Partials 219 221 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
|
This pull request introduces 2 alerts when merging e77e54e into ad99471 - view on LGTM.com new alerts:
|
thedrow
left a comment
There was a problem hiding this comment.
Overall, this looks great.
I do have some rather minor comments and a question.
We also need to document this change.
|
This pull request fixes 2 alerts when merging c588c97 into ad99471 - view on LGTM.com fixed alerts:
|
|
I implement all requested changes. I will squash all commits once we reach approved stage.
I am not sure what I need to do here, only documentation I found that talks about eventlet taskpool in details is this. Rebuilding documentation should add |
|
We should update the docs here to reflect that the eventlet pool also supports cancellation. |
|
This pull request fixes 2 alerts when merging f624d99 into ad99471 - view on LGTM.com fixed alerts:
|
updated. |
…#6917) * Terminate job eventlet implementation #asd * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Use {} instead of dict * Requested fixes * Update workers guide docs Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
|
Hello! How are you? Is it possible for you to address this issue for the gevent backend, please? Issue #4019 |
Terminate job implementation for eventlet concurrency backend
Description
Current implementation of TaskPool which is based on eventlet library does not support terminating jobs.
Revoking with
terminate=Trueor terminating task raisesNotImplementedError: <class 'celery.concurrency.eventlet.TaskPool'> does not implement kill_jobexception while task continues to run.Fixes #5209 #3429
Fixes only eventlet backend for this issue #4019