Repository navigation
create-bullmq-app and eslint-plugin-bullmq: a scaffold and lint rules built on the Going to production guide #5039
Krrishkumar125
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi all. I'm Krrish Kumar, and I wrote two small open-source tools for BullMQ users. I'm posting them here in case they save someone a production incident.
create-bullmq-app (https://github.com/Krrishkumar125/create-bullmq-app)
It scaffolds a TypeScript service with a Hono API that validates and enqueues jobs, plus a separate worker process. I built it around the points in the Going to production guide:
maxRetriesPerRequest: null)removeOnComplete/removeOnFailjobIdupsertJobScheduler/metricsendpointnoevictioneslint-plugin-bullmq (https://github.com/Krrishkumar125/eslint-plugin-bullmq)
It has four rules:
Worker/Queuewith no'error'listenermaxRetriesPerRequest: nulljobIdcontaining:or an integerjobIddedupe thatremoveOnComplete: truequietly turns offEach rule's premise is checked against real Redis and the real
bullmqpackage in an integration test, so it doesn't rely on my memory of the docs. The scaffold ships with the plugin enabled.Both are early (0.x) and not affiliated with Taskforce.sh. If a rule is wrong, or there's a pitfall you'd want covered, an issue is very welcome.
Disclosure: I used an AI assistant to help write the code and this post. I reviewed both, and I'll answer replies myself.
All reactions