-
-
Notifications
You must be signed in to change notification settings - Fork 697
Fix: custom queue releaseConcurrencyOnWaitpoint. #1896
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: custom queue releaseConcurrencyOnWaitpoint. #1896
Conversation
…ix custom queues)
|
Caution Review failedThe pull request is closed. WalkthroughThis change updates the queue creation and metadata registration logic across multiple files to support a new parameter, Changes
Sequence Diagram(s)sequenceDiagram
participant Client as Client Request
participant WG as Worker Service
participant DB as Task Queue Database
Client->>WG: Request worker queue creation (with releaseConcurrencyOnWaitpoint flag)
WG->>WG: Process createWorkerQueue (include flag)
WG->>DB: Call upsertWorkerQueueRecord (with releaseConcurrencyOnWaitpoint)
DB-->>WG: Return confirmation
WG-->>Client: Worker queue created
sequenceDiagram
participant Tester as waitReleaseConcurrencyTestTask
participant Q1 as Release-Enabled Queue
participant Q2 as Release-Disabled Queue
Tester->>Q1: Trigger releaseEnabledTask
Tester->>Q2: Trigger releaseDisabledTask
Q1-->>Tester: Task starts immediately (concurrency released)
Q2-->>Tester: Task waits for previous to complete
Tester-->>Tester: Validate execution order & concurrency behavior
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (5)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was an issue with
releaseConcurrencyOnWaitpoint
being set when indexing. It was registered twice, once for the custom queue and again where it was being used on any tasks. On the task registrations it didn't pass throughreleaseConcurrencyOnWaitpoint
and this was "winning".releaseConcurrencyOnWaitpoint
directly on a task queue.Summary by CodeRabbit
New Features
Tests