Repository navigation
Refs #4356: Handle "hybrid" messages that have moved between Celery versions - #4358
Merged
Merged
Conversation
…rotocol 2 consumer in its life. we detected an edgecase which is proofed out in https://gist.github.com/ewdurbin/ddf4b0f0c0a4b190251a4a23859dd13c#file-readme-md which mishandles messages which have been retried by a 3.1.25, then a 4.1.0, then again by a 3.1.25 consumer. as an extension, this patch handles the "next" iteration of these mutant payloads.
2 tasks done
Contributor
|
I think that in this case a unit test that verifies that we can move a message between protocol v1 and v2 after a retry is enough to validate this. |
Contributor
|
@freakboy3742 any chance you'll get to write that unit test? |
clokep
added a commit
to clokep/celery-batches
that referenced
this pull request
Apr 8, 2022
clokep
added a commit
to clokep/celery-batches
that referenced
this pull request
Apr 8, 2022
rammie
pushed a commit
to rammie/celery-batches
that referenced
this pull request
Apr 29, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The patch in #4357 addresses a problem with forward compatibility in message handling. This
If you apply the patch from #4357, then modify the test case reported in #4356 to cycle from Celery 3.1 -> 4.1 -> 3.1 -> 4.1, you get a similar error, but on the Celery 4.1 worker:
This patch handles the "hybrid" syntax on the Celery 4.1 worker.