Repository navigation
Chords, get body_type independently to handle cases where body.type does not exist ... - #6847
Conversation
…exist due to tasks being created via Signatures
|
This pull request introduces 2 alerts when merging db2d158 into e885a47 - view on LGTM.com new alerts:
|
| kwargs['result'] = [r.as_tuple() for r in header_result] | ||
| queue = body.options.get('queue', getattr(body.type, 'queue', None)) | ||
| priority = body.options.get('priority', getattr(body.type, 'priority', 0)) | ||
| body_type = body.get('type', None) |
There was a problem hiding this comment.
this change need to be unit test covered
There was a problem hiding this comment.
Will add unit tests and fix current failing one.
Oddly enough the auto unit tests here fail, yet running on windows 10 via cli the same test passes, even odder if I debug through the test it fails.
I will attempt to resolve all this tonight.
There was a problem hiding this comment.
@auvipy Unit tests added to existing test_chord_unlock_queue test. If you want a separate test for this I can split it out. Just let me know!
…tRegistered Error if the app that generated the task is not the app that owns the task
|
This pull request introduces 1 alert when merging fce1334 into e885a47 - view on LGTM.com new alerts:
|
Codecov Report
@@ Coverage Diff @@
## master #6847 +/- ##
=========================================
Coverage ? 79.21%
=========================================
Files ? 138
Lines ? 16616
Branches ? 2097
=========================================
Hits ? 13162
Misses ? 3227
Partials ? 227
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 0702904 into e885a47 - view on LGTM.com new alerts:
|
…oes not exist ... (celery#6847) * Get body_type independently to handle cases where body.type does not exist due to tasks being created via Signatures * body.get() was returning None always, must getattr() and catch the NotRegistered Error if the app that generated the task is not the app that owns the task * flake8 fix for too many blank lines
… due to tasks being created via Signatures
Note: Before submitting this pull request, please review our contributing
guidelines.
Description
When celery Chords are created by Signatures where the workflow is Task_1+Group+Task_2, when the Task_1 gets executed and moves to start the Chain, if the callback Chord Task_2 does not belong to the same queue as Task_1, body.type does not exist and ends up throwing error as the Task_2 does not belong to Task_1's task list and we end up with a NotRegistered error.
Fixes #6846