-
-
Notifications
You must be signed in to change notification settings - Fork 991
fix: machine preset not resetting to default when removing config #2986
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: machine preset not resetting to default when removing config #2986
Conversation
🦋 Changeset detectedLatest commit: a334205 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughThis pull request adds a patch release changelog entry and modifies the machine preset resolution logic in the shared queue consumer. The key functional change updates how the machinePreset is calculated in the Execute path to always derive from the background task's current machineConfig instead of falling back to a previously used machine preset from an existing task run. This ensures deployments correctly use their current configuration when machine presets have been removed. Additionally, minor formatting adjustments were made to empty finally handlers and indentation. Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Repository UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (7)**/*.{ts,tsx}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
{packages/core,apps/webapp}/**/*.{ts,tsx}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
**/*.{ts,tsx,js,jsx}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
apps/webapp/app/**/*.{ts,tsx}📄 CodeRabbit inference engine (.cursor/rules/webapp.mdc)
Files:
apps/webapp/**/*.{ts,tsx}📄 CodeRabbit inference engine (.cursor/rules/webapp.mdc)
Files:
**/*.ts📄 CodeRabbit inference engine (.cursor/rules/otel-metrics.mdc)
Files:
**/*.{js,ts,jsx,tsx,json,md,yaml,yml}📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (5)📓 Common learnings📚 Learning: 2025-11-27T16:27:35.304ZApplied to files:
📚 Learning: 2025-01-13T18:31:48.160ZApplied to files:
📚 Learning: 2025-11-27T16:27:35.304ZApplied to files:
📚 Learning: 2025-06-04T16:02:22.957ZApplied to files:
🧬 Code graph analysis (1)apps/webapp/app/v3/marqs/sharedQueueConsumer.server.ts (4)
🔇 Additional comments (6)
✏️ Tip: You can disable this entire section by setting 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. Comment |
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.
Review CompleteYour review story is ready! Comment !reviewfast on this PR to re-generate the story. |
Summary
Fixes #2796
Problem
When a task's machine configuration was removed and the project redeployed, runs would still execute on the old machine preset instead of resetting to the default (small-1x).
Root Cause
In sharedQueueConsumer.server.ts, the code was prioritizing existingTaskRun.machinePreset (stale value) over the current deployment's backgroundTask.machineConfig.
Fix
Changed machine preset resolution to always use current deployment's machine config.