Skip to content

feature refresh queues #8

Open
@Diluka

Description

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);
});

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions