feat: add Inngest stage automation workflow - #46
Conversation
|
@all-contributors please add @StefanoFalco for code |
|
I've put up a pull request to add @StefanoFalco! 🎉 |
6c9b0da to
37968ae
Compare
|
I also pushed the follow-up Stage D branch:
I am not opening it as a separate PR to Stage D adds the Inngest workflow for creating the interview report document, creating the Google Calendar event with Google Meet link, saving |
There was a problem hiding this comment.
Excellent PR! Thank you for the submission. I'm only concerned about the sleepUntil, won't it cause unnecessary CPU load? I saw on the documentation that there's also a way to schedule one-off tasks:
https://www.inngest.com/docs/examples/scheduling-one-off-function
Should we think about switching to this solution instead?
P.S. Upon further thinking, it's fine this way, better not to delay this uselessly. Just check the all-contributors-cli dep and we should be good to go.
|
Ok, I kept |
Related Issue:
No linked issue for now. This PR addresses the migration of part of the recruitment stage automation flow from n8n to Inngest.
Description:
This PR introduces an Inngest-based automation layer for selected recruitment stage transitions, moving part of the current n8n-driven flow closer to the Next.js application.
The implemented changes include:
/recruitmentbase path;Stage D has intentionally not yet been fully migrated in this PR, because it involves more complex persistent side effects such as Google Docs report creation, Google Calendar event creation, Google Meet generation, and saving generated data back into the interview record. This will be handled in a follow-up PR after validating the basic Inngest structure.
Validation:
pnpm lint.pnpm build.pnpm devand checked the local Next.js app./recruitment/api/inngest-health./recruitment/api/inngest./recruitment/api/inngest.devand notmain.