perf: only add new release targets to evaluate queue#544
perf: only add new release targets to evaluate queue#544adityachoudhari26 merged 1 commit intomainfrom
Conversation
WalkthroughThe code in the compute-systems-release-targets worker has been updated to change the focus from "matched" release targets to "created" release targets. The transaction block now returns a list of newly created and deleted release targets, removing the previous logic that queried for matched targets after insertion. Subsequent logic and function calls have been updated to use the "created" targets for further processing and job dispatching, replacing all references to "matched" with "created". Changes
Sequence Diagram(s)sequenceDiagram
participant Worker as ComputeSystemsReleaseTargets Worker
participant DB as Database
participant Dispatcher as dispatchEvaluateJobs
Worker->>DB: Insert new release targets
DB-->>Worker: Return { created, deleted }
alt If created.length === 0
Worker-->>Worker: Skip further processing
else If created.length > 0
Worker->>Dispatcher: dispatchEvaluateJobs(created)
end
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)`**/*.{ts,tsx}`: **Note on Error Handling:** Avoid strict enforcement of try/catch blocks. Code may use early returns, Promise chains (.then().catch()), or other patterns for error...
🧬 Code Graph Analysis (1)apps/event-worker/src/workers/compute-systems-release-targets.ts (2)
⏰ Context from checks skipped due to timeout of 90000ms (3)
🔇 Additional comments (4)
✨ 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:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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
Documentation and Community
|
Summary by CodeRabbit