Replies: 3 comments 2 replies
-
Are the above 3 cherry-picked jobs on a larger flow of jobs or just the 3 jobs there are? |
Beta Was this translation helpful? Give feedback.
-
You can use Redis command MONITOR to see what is going on, several seconds for processing a dummy job is wrong, but I have no idea based on the information that you are providing. |
Beta Was this translation helpful? Give feedback.
-
Managed to solve the issue & jobs now stay in the waiting queue for <1s 🎊 Not 100% what the issue was. I think it had something to do with the redis connections. Reading through the tests, updated my const redis = {
client: null,
subscriber: null,
};
export const bullOpts = {
createClient(type, redisOpts) {
switch (type) {
case "client":
if (!redis.client) {
redis.client = createRedisConnection(redisOpts);
}
return redis.client;
case "subscriber":
if (!redis.subscriber) {
redis.subscriber = createRedisConnection(redisOpts);
}
return redis.subscriber;
case "bclient":
return createRedisConnection(redisOpts);
default:
throw new Error("Unexpected connection type: ", type);
}
},
}; Main difference is it will always create a new connection when the client type is |
Beta Was this translation helpful? Give feedback.
-
First of all, thanks for such simple & great library :)
I have a queue that is critical for it to perform tasks as fast as possible.
Jobs take some time to go from "waiting" to "active" queue
Here are some data points from latest jobs:
Bull version: 4.8.3 (Recently upgraded from v3.x, thinking version could be the problem)
Redis version: 6.2.6 (Cloud instance of redislabs free plan)
Code implementation is fairly simple so wondering if it's a config/hardware/network-roundtrips issue?
Did some local benchmarking & couldn't replicate the issue, so thought in asking here:
How could I go about debugging performance root issue?
Just for reference what I'm doing:
Beta Was this translation helpful? Give feedback.
All reactions