Connector Pro

It is possible to bring connections that use BullMQ Pro to the dashboard by using the Pro version of the connector. Currently, the connector does not have a CLI version but you can easily use it programmatically.

First, you need to install the @taskforcesh/connector-pro dependency.

$ npm install -S @taskforcesh/connector-pro

You can now import the package and instantiate a connector. Notice that you can have as many connectors running in parallel as you want. That will just add redundancy, however once is often enough.

import { ConnectPro } from "@taskforcesh/connector-pro";

ConnectPro(
  "My Connection",
  "My token",
  // IORedis options
  {
    host: "localhost",
    port: 6379,
  },
  // Options
  {
    // Specify a team where to put this connection if needed.
    team: "my team",
    // Specify a custom backend if using on-premises
    backend: "ws://localhost:9876", 
  }
);

Last updated