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

feature refresh queues #8

Open
Diluka opened this issue Apr 29, 2021 · 3 comments · May be fixed by #12
Open

feature refresh queues #8

Diluka opened this issue Apr 29, 2021 · 3 comments · May be fixed by #12

Comments

@Diluka
Copy link
Contributor

Diluka commented Apr 29, 2021

if a new queue added after bull-board start up, it will never shows until bull-board restart

the queue registrations only execute once on start up

client.KEYS(`${config.BULL_PREFIX}:*`, (err, keys) => {
const uniqKeys = new Set(keys.map(key => key.replace(/^.+?:(.+?):.+?$/, '$1')));
const queueList = Array.from(uniqKeys).sort().map(
(item) => {
if (config.BULL_VERSION === 'BULLMQ') {
return new BullMQAdapter(new bullmq.Queue(item, {connection: redisConfig.redis}));
}
return new BullAdapter(new Queue(item, redisConfig));
}
);
setQueues(queueList);
});

@Diluka
Copy link
Contributor Author

Diluka commented May 17, 2021

@Deadly0 if bull-board start before api server, if may not add new queues.

@Deadly0
Copy link
Owner

Deadly0 commented May 18, 2021

@Diluka I'll implement it, but feel free to open a PR if you need it asap.

@colthreepv colthreepv linked a pull request Jun 4, 2021 that will close this issue
@virus2016
Copy link

virus2016 commented Dec 15, 2022

@Deadly0 any chance we can get this added?

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 a pull request may close this issue.

3 participants