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

Setting up Arena as a node module #121

Open
MrNghia123 opened this issue Sep 19, 2018 · 1 comment
Open

Setting up Arena as a node module #121

MrNghia123 opened this issue Sep 19, 2018 · 1 comment

Comments

@MrNghia123
Copy link

Hi,

Thanks for the package.

I have an express app as the frontend to mange a backend system making use of bull queue to process files download/upload
I want to set up arena to use in the current express app to share all the security and other facilities.
I followed the guides here https://github.com/bee-queue/arena#running-arena-as-a-node-module.
2 issues:
1/ Asynchronously build the queues configuration and inject to Arena
Although there is a guide which seem to do similar:
https://mixmax.com/blog/bull-queue-aws-autodiscovery
However the guide there just ends up at the async function which return the queues, so I don't know how would that be injected to Arena later on.
2/ Arena dashboard is not filled with data
I attempted to hardcode queues configuration :
const arenaConfig = Arena({
queues: [
{
// Name of the bull queue, this name must match up exactly with what you've defined in bull.
name: "download",

  // Hostname or queue prefix, you can put whatever you want.
  hostId: "MyAwesomeQueues",

  // Redis auth.
  redis: {
    port: 6379,
    host:  '127.0.0.1',
  },
},

],
},
{
// Make the arena dashboard become available at {my-site.com}/arena.
// basePath: '/arena',
useCdn: true,
// Let express handle the listening.
disableListen: true
});

// Make arena's resources (js/css deps) available at the base app route
router.use('/arena', arenaConfig);

The dashboard now show up. However it is just empty with only the "download" queue link show up, but just show "not found" when clicked on.
screenshot 2018-09-19 12 22 51

@aaron-blondeau-dose
Copy link

PR #123 may help with configurations like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants