question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

document bullmq support

See original GitHub issue

Description

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 support bullmq with typescript?
  • If so, what am I doing wrong and what are the workarounds?

Can someone help me out. Thanks in advance

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
gtpan77commented, Oct 15, 2020

Assign this issue to me. I’ll look into it.

1reaction
skeggsecommented, Oct 15, 2020

oh lol I didn’t even notice that wasn’t just bull

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found