-
-
Notifications
You must be signed in to change notification settings - Fork 782
Move batch trigger processing jobs to a dedicated redis worker #2233
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
Conversation
|
WalkthroughThis change introduces a dedicated batch trigger worker system within the application. It adds a new set of environment variables for configuring the batch trigger worker, including concurrency, polling intervals, Redis connection details, and logging. A new worker module is created to handle batch trigger jobs, with job definitions and handlers migrated from the existing common worker. The affected services are updated to enqueue batch processing jobs to the new batch trigger worker instead of the common worker. Deprecation comments are added to the old job definitions in the common worker to indicate their relocation. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (5)
🧰 Additional context used📓 Path-based instructions (4)`apps/webapp/**/*.ts`: In the webapp, all environment variables must be accessed through the `env` export of `env.server.ts`, instead of directly accessing `process.env`.
📄 Source: CodeRabbit Inference Engine (.cursor/rules/webapp.mdc) List of files the instruction was applied to:
`apps/webapp/**/*.{ts,tsx}`: When importing from `@trigger.dev/core` in the weba...
📄 Source: CodeRabbit Inference Engine (.cursor/rules/webapp.mdc) List of files the instruction was applied to:
`**/*.{ts,tsx}`: Always prefer using isomorphic code like fetch, ReadableStream,...
📄 Source: CodeRabbit Inference Engine (.github/copilot-instructions.md) List of files the instruction was applied to:
`{packages/core,apps/webapp}/**/*.{ts,tsx}`: We use zod a lot in packages/core and in the webapp
📄 Source: CodeRabbit Inference Engine (.github/copilot-instructions.md) List of files the instruction was applied to:
🧠 Learnings (6)📓 Common learnings
apps/webapp/app/v3/commonWorker.server.ts (13)
apps/webapp/app/runEngine/services/batchTrigger.server.ts (12)
apps/webapp/app/v3/services/batchTriggerV3.server.ts (13)
apps/webapp/app/v3/batchTriggerWorker.server.ts (11)
apps/webapp/app/env.server.ts (10)
🧬 Code Graph Analysis (2)apps/webapp/app/runEngine/services/batchTrigger.server.ts (1)
apps/webapp/app/v3/services/batchTriggerV3.server.ts (1)
⏰ Context from checks skipped due to timeout of 90000ms (25)
🔇 Additional comments (5)
✨ 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 (
|
No description provided.