forked from celery/celery
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preserve order of group results with Redis result backend (celery#6218)
* Preserve order of return values from groups Fixes celery#3781. * Update for zadd arguments changed in redis-py 3 * Use more explicit loop variable name * Handle group_index not set * Use zrange instead of zrangebyscore * test: Fix Redis sorted set mocks in backend tests * test: Make canvas integration tests use `zrange()` The test suite still uses `lrange()` and `rpush()` to implement its `redis-echo` task chain integration tests, but these are unrelated to the handling of group results and remain unchanged. * test: Add unit tests for `group_index` handling * fix: Add `group_index` to `Context`, chord uplift * test: Sanity check `Request.group_index` property This adds a test to make sure the property exists and also changes the property to use the private `_request_dict` rather than the public property. Co-authored-by: Leo Singer <[email protected]>
- Loading branch information
1 parent
9dddf8c
commit 455e0a0
Showing
11 changed files
with
107 additions
and
45 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.