document bullmq support
See original GitHub issueDescription
I was trying to use bull-arena
for my project which uses bullmq
. The project is written in typescript.
Here’s what I am trying to do
import Arena from "bull-arena";
import { Queue } from "bullmq";
const arena = Arena({
Bull: Queue,
queues: [
{
name: "link-account-queue",
hostId: "Link Account Queue",
redis: {
host: REDIS_HOST,
port: REDIS_PORT
}
}
]
});
Typescript throws an error saying
Type 'typeof Queue' is not assignable to type '{ <T = any>(queueName: string, opts?: QueueOptions): Queue<T>; <T = any>(queueName: string, url: string, opts?: QueueOptions): Queue<T>; new <T = any>(queueName: string, opts?: QueueOptions): Queue<...>; new <T = any>(queueName: string, url: string, opts?: QueueOptions): Queue<...>; }'.
Type 'typeof Queue' provides no match for the signature '<T = any>(queueName: string, opts?: QueueOptions): Queue<T>'
If i force the type to never, I can start the application but I get the following error when opening the arena ui.
TypeError: queue.client.info is not a function
Question
- Does
bull-arena
supportbullmq
withtypescript
? - If so, what am I doing wrong and what are the workarounds?
Can someone help me out. Thanks in advance
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (6 by maintainers)
Top Results From Across the Web
What is BullMQ - BullMQ
BullMQ is a Node.js library that implements a fast and robust queue system built on top of Redis that helps in resolving many...
Read more >BullMQ - Premium Message Queue for NodeJS based on Redis
The fastest, most reliable, Redis-based distributed queue for Node. Carefully written for rock solid stability and atomicity. Read the documentation. Follow @ ...
Read more >bullmq - npm
Carefully written for rock solid stability and atomicity. Read the documentation. Follow @manast for *important* Bull/BullMQ/BullMQ-Pro news and ...
Read more >BullMQ Pro - Taskforce.sh
For information on how to use BullMQ Pro please refer to the official documentation. If you need support please reach us at ...
Read more >Typescript+Hapi+BullMQ === Elegant Queue | by Joy Debnath
I will recommend everyone read through the documentation. I have installed Redis on my local machine using Docker Compose. Here is what my...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Assign this issue to me. I’ll look into it.
oh lol I didn’t even notice that wasn’t just bull