Repository navigation
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 43 minutes. View limit details
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. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2006080757
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| start() { | ||
| if (timers.size > 0) return; | ||
| for (const job of Object.keys(jobs) as SchedulerJobName[]) { | ||
| timers.set(job, setTimer(() => void runNow(job), cadence[job])); |
There was a problem hiding this comment.
Handle audit-write failures in scheduled callbacks
If writeAudit rejects because its destination is unavailable or full, runNow catches the initial failure but then awaits another write to the same failing sink, allowing that rejection to escape. The interval callback discards the returned promise without a rejection handler, so an audit-storage failure becomes an unhandled rejection in the hosting process instead of an isolated scheduler error. Handle audit failures separately and attach a rejection handler to timer-triggered runs so failure of the write-only audit sink cannot disrupt both jobs.
Useful? React with 👍 / 👎.
Summary
Evidence
cd pm-stack/aggregator && bun test test/pm-core-scheduler.test.ts— 3 passed, 0 failedcd pm-stack/aggregator && bunx tsc --noEmit— passedgit diff --check— passedorigin/mainat commit2006080757bScope
This is the schedulers-first slice of #8570. It does not cut over systemd units or fold projector reads yet; those remain the next slices.
Refs #8570
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.