Skip to content

feat(worker): BullMQ job queue for sequence steps and workflow delays#32

Merged
ThomasHartDev merged 3 commits into
masterfrom
thomas/feat/worker-pkg
Jul 17, 2026
Merged

feat(worker): BullMQ job queue for sequence steps and workflow delays#32
ThomasHartDev merged 3 commits into
masterfrom
thomas/feat/worker-pkg

Conversation

@ThomasHartDev

Copy link
Copy Markdown
Owner

this adds the packages/worker package so the automation engine can actually run in the background instead of blocking a request. it wires BullMQ onto the redis we already declare in docker-compose, with two job types, sequence-step and workflow-delay. job ids are derived from the enrollment/step and execution/node so a retried trigger won't double-schedule the same work, delays get clamped and floored before they hit redis, and jobs run through a small zod-validated dispatcher registry instead of a switch. failed jobs bubble up so bullmq retries them under exponential backoff. there's decent test coverage on the delay clamping, id determinism, enqueue options and the dispatch/validation paths. i also had to add prettier-plugin-tailwindcss at the workspace root, the format:check was failing to even load it before so CI was red for everyone. handlers that touch the db (send the email, advance the enrollment) come in a follow-up.

the ci.yml e2e job already runs playwright against the web package with the
right setup. this root-level workflow duplicated it, ran npx playwright test with
no database, and never passed.
@ThomasHartDev
ThomasHartDev merged commit 2294f11 into master Jul 17, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant