Conversation
|
WalkthroughThe ✨ 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
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
apps/webapp/app/v3/services/rescheduleTaskRun.server.ts (1)
30-35: Await the engine reschedule for parity & add a default guardBranch A (
V1) waits for the reschedule to finish before returning, whereas Branch B returns the promise directly.
For consistent behaviour – especially if higher-level code relies on completion – await the engine call as well.
While touching this, a defensivedefaultbranch prevents silent no-ops when a new engine enum is introduced.- if (updatedRun.engine === "V1") { - await EnqueueDelayedRunService.reschedule(taskRun.id, delay); - return updatedRun; - } else { - return engine.rescheduleDelayedRun({ runId: taskRun.id, delayUntil: delay }); - } + switch (updatedRun.engine) { + case "V1": + await EnqueueDelayedRunService.reschedule(taskRun.id, delay); + return updatedRun; + + default: + return await engine.rescheduleDelayedRun({ + runId: taskRun.id, + delayUntil: delay, + }); + }
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
apps/webapp/app/v3/services/rescheduleTaskRun.server.ts(2 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
apps/webapp/app/v3/services/rescheduleTaskRun.server.ts (2)
apps/webapp/app/v3/services/enqueueDelayedRun.server.ts (1)
EnqueueDelayedRunService(9-109)apps/webapp/app/v3/runEngine.server.ts (1)
engine(9-9)
⏰ Context from checks skipped due to timeout of 90000ms (25)
- GitHub Check: units / webapp / 🧪 Unit Tests: Webapp (10, 10)
- GitHub Check: units / webapp / 🧪 Unit Tests: Webapp (7, 10)
- GitHub Check: units / webapp / 🧪 Unit Tests: Webapp (9, 10)
- GitHub Check: units / webapp / 🧪 Unit Tests: Webapp (4, 10)
- GitHub Check: units / webapp / 🧪 Unit Tests: Webapp (8, 10)
- GitHub Check: units / webapp / 🧪 Unit Tests: Webapp (5, 10)
- GitHub Check: units / webapp / 🧪 Unit Tests: Webapp (6, 10)
- GitHub Check: units / webapp / 🧪 Unit Tests: Webapp (2, 10)
- GitHub Check: units / webapp / 🧪 Unit Tests: Webapp (1, 10)
- GitHub Check: units / webapp / 🧪 Unit Tests: Webapp (3, 10)
- GitHub Check: units / internal / 🧪 Unit Tests: Internal (7, 8)
- GitHub Check: units / internal / 🧪 Unit Tests: Internal (4, 8)
- GitHub Check: units / internal / 🧪 Unit Tests: Internal (8, 8)
- GitHub Check: units / internal / 🧪 Unit Tests: Internal (1, 8)
- GitHub Check: units / internal / 🧪 Unit Tests: Internal (3, 8)
- GitHub Check: units / internal / 🧪 Unit Tests: Internal (6, 8)
- GitHub Check: units / internal / 🧪 Unit Tests: Internal (5, 8)
- GitHub Check: units / internal / 🧪 Unit Tests: Internal (2, 8)
- GitHub Check: units / packages / 🧪 Unit Tests: Packages (1, 1)
- GitHub Check: e2e / 🧪 CLI v3 tests (windows-latest - pnpm)
- GitHub Check: e2e / 🧪 CLI v3 tests (windows-latest - npm)
- GitHub Check: e2e / 🧪 CLI v3 tests (ubuntu-latest - npm)
- GitHub Check: e2e / 🧪 CLI v3 tests (ubuntu-latest - pnpm)
- GitHub Check: typecheck / typecheck
- GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (1)
apps/webapp/app/v3/services/rescheduleTaskRun.server.ts (1)
25-27: Verify newqueueTimestampcolumn & migration before deploy
The update now persists bothdelayUntilandqueueTimestampto the same value.
Please ensure that:
queueTimestampactually exists in theTaskRunmodel and the production database has been migrated; otherwise this call will throw at runtime.- The semantic difference between
queuedAt(used elsewhere) and the newqueueTimestampis clear to future readers – consider adding a brief inline comment or consolidating the names if they represent the same concept.
* Fix for v3 rescheduling bug… * v4 rescheduling working
Using
runs.reschedule()wasn't working correctly.queueTimestampcolumn.This PR makes rescheduling work properly for both versions.