Skip to content

fix: build from source — remove dead bullmq jobs and leftover redis s6 service - #35

Open
docloulou wants to merge 2 commits into
usetrmnl:mainfrom
docloulou:fix/remove-dead-bullmq-jobs
Open

docloulou wants to merge 2 commits into
usetrmnl:mainfrom
docloulou:fix/remove-dead-bullmq-jobs

Conversation

@docloulou

@docloulou docloulou commented Oct 4, 2026 •

Copy link
Copy Markdown

Building the image from main does not reproduce the published wojooo/inker:0.6.0:

  1. bun run build (Dockerfile stage backend-builder) fails with 6× TS2307: Cannot find module '@nestjs/bullmq' / 'bullmq' in src/jobs/processors/{log-cleanup,model-poller}.processor.ts and src/jobs/services/model-poller.service.ts. These are leftovers from the Redis/BullMQ stack: the packages are gone from package.json, and nothing imports the files (JobsModule only provides LogCleanupService, which uses @nestjs/schedule). Nest's webpack type-checker checks everything under src/, so the dead files break the build.
  2. docker/services.d/redis/run is still copied to /etc/services.d, but redis-server is no longer installed, so s6 loops forever on exec: redis-server: not found. The published 0.6.0 image only has the backend and nginx services. With this change, the /etc/cont-init.d and /etc/services.d contents of a source build match it exactly (md5).

After the change: bun run build compiles successfully and bun test gives 432 pass / 0 fail. Spotted while building #34 from source.

ModelPollerService and the log-cleanup/model-poller processors import
@nestjs/bullmq and bullmq, which are no longer dependencies since the
Redis/PostgreSQL stack was dropped. Nothing imports them (JobsModule only
provides LogCleanupService), but the webpack type-check covers all of src/,
so `bun run build` (and the Dockerfile backend-builder stage) fails with
TS2307.
redis-server is no longer installed in the image (the Redis/BullMQ stack was
removed), but docker/services.d/redis/run is still copied into
/etc/services.d, so s6 restarts it forever: "exec: redis-server: not found".
The published wojooo/inker:0.6.0 image has no such service.
@docloulou docloulou changed the title fix(build): remove dead bullmq job files that break the backend build fix: build from source — remove dead bullmq jobs and leftover redis s6 service Oct 4, 2026
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