-
Notifications
You must be signed in to change notification settings - Fork 11
evaluate on cron #467
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
evaluate on cron #467
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThis pull request introduces a new dependency, Changes
Sequence Diagram(s)sequenceDiagram
participant Runner as run()
participant Evaluator as triggerPolicyEvaluation()
participant DB as Database
participant Queue as Evaluation Queue
Runner->>Evaluator: Call triggerPolicyEvaluation()
loop Fetch release targets in chunks
Evaluator->>DB: Query release targets (limit=1000, offset)
DB-->>Evaluator: Return release targets
alt Targets found
Evaluator->>Queue: Enqueue evaluation tasks
else No targets
Evaluator-->>Evaluator: Exit loop
end
end
Runner->>Runner: Continue with job dispatch
Poem
Tip ⚡💬 Agentic Chat (Pro Plan, General Availability)
📜 Recent review detailsConfiguration used: .coderabbit.yaml ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
✨ Finishing Touches
🪧 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
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (2)
apps/jobs/package.json(1 hunks)apps/jobs/src/policy-checker/index.ts(2 hunks)
🧰 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...
**/*.{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 handling. These are acceptable as long as they maintain clarity and predictability.
apps/jobs/src/policy-checker/index.ts
⏰ Context from checks skipped due to timeout of 90000ms (5)
- GitHub Check: build (linux/amd64)
- GitHub Check: Typecheck
- GitHub Check: Lint
- GitHub Check: Test
- GitHub Check: build (linux/amd64)
🔇 Additional comments (2)
apps/jobs/package.json (1)
17-17: LGTM: New dependency for event handling added.The addition of
"@ctrlplane/events": "workspace:*"correctly references the workspace package that will be used for the new policy evaluation functionality.apps/jobs/src/policy-checker/index.ts (1)
4-4: LGTM: Imported required modules from new dependency.The import statement correctly brings in the
ChannelandgetQueuefunctions from the newly added events package.
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Justin Brooks <jsbroks@gmail.com>
Summary by CodeRabbit
New Features
Chores