-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(subs): key collision on redis (#865)
Follow up of #863 When multiple start occurs for redis, some schedules can happen **exactly** at the same time resulting into the same identifier (and leading to an inconsistent state). This solution simply combines the `schedule` with the run_id making it unique instead of using it as is. ```gql mutation AllAtOnce { a: start_retry(kwargs: { .. }) # => calls add_schedule( ... date ...) b: start_retry(kwargs: { .. }) c: start_retry(kwargs: { .. }) d: start_retry(kwargs: { .. }) e: start_retry(kwargs: { .. }) f: start_retry(kwargs: { .. }) # .. } ``` #### Migration notes None - [ ] The change comes with new or modified tests - [ ] Hard-to-understand functions have explanatory comments - [ ] End-user documentation is updated to reflect the change
- Loading branch information
1 parent
bbef981
commit daec029
Showing
3 changed files
with
13 additions
and
23 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