-
Notifications
You must be signed in to change notification settings - Fork 15
feat: add flow compilation verification at worker startup #474
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
base: 11-30-add_local_supabase_detection_to_controlplane_for_auto_mode_detection
Are you sure you want to change the base?
Conversation
|
|
View your CI Pipeline Execution ↗ for commit c5ef186
☁️ Nx Cloud last updated this comment at |
1bef6d0 to
f98a265
Compare
f98a265 to
c5ef186
Compare
🔍 Preview Deployment: Website✅ Deployment successful! 🔗 Preview URL: https://pr-474.pgflow.pages.dev 📝 Details:
_Last updated: _ |

Flow Compilation at Worker Startup
This PR adds automatic flow compilation and verification during worker startup. When a flow worker starts, it now ensures the flow is properly compiled in the database before processing any tasks.
Key features:
ensureFlowCompiledmethod to the Queries class to check flow compilation statusFlowWorkerLifecycleclassFlowShapeMismatchErrorfor handling flow structure mismatchesThe PR includes comprehensive integration tests covering:
This ensures flows are always properly compiled before execution, preventing runtime errors from mismatched flow definitions.