Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pass in the Queue constructor for bullmq #244

Open
wants to merge 1 commit into
base: default
Choose a base branch
from

Conversation

mod35
Copy link

@mod35 mod35 commented Aug 2, 2021

This PR addresses the default import for bullmq not being the correct Queue constructor that's required to be passed into the Arena constructor.

Testing

with the following config file:

// arena.json
{
  "queues": [
    {
      "name": "node-ts/bus-redis-test",
      "hostId": "Integration test queue",
      "type": "bullmq",
      "redis": {
          "port": 6379,
          "host": "redis"
      }
    }
  ]
}

Accompanied with a docker-compose.yml to assist with networking:

# docker-compose.yml
version: '3'

services:
  redis:
    image: bitnami/redis
    container_name: redis
    environment:
      - ALLOW_EMPTY_PASSWORD=yes
    ports:
      - "6379:6379"
  arena:
    image: docker-arena
    container_name: arena
    links:
      - redis
    ports:
      - "4567:4567"
    volumes:
      - "./arena.json:/opt/arena/index.json"

it would fail the moment you try to access the specified queue in the UI with the following error message:

2021-08-02 22 08 12

image

Specifically BullMQ is not a constructor.

With the fix

2021-08-02 22 14 54

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.

None yet

1 participant