Replies: 1 comment 1 reply
-
This is in fact a common, and quite hard problem to solve, that's why we implemented "groups" in the Pro version https://docs.bullmq.io/bullmq-pro/groups |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I created a RSS bot which posts links from RSS to telegram channels. The project is quite simple I use a bullMQ for each message to be sent out.
Now the problem is that there are two kinds of API limits I am facing with telegram. One is for too many messages globally, and the other one is too many messages per chat group.
Currently when I hit a
429 too many requests
I just pause the queue for all users, and return it after the given time (api gives retry_in 40 seconds).This is not the greatest solution because:
I would like to have an option to only pause the jobs that related to the specific group that got rate limited. Instead of stopping the whole queue just because one chat group misbehaved!
Currently my jobs look like this:
Ideas:
Any help is appreciated, I love the project and I am new to redis/bull :)
Currently this is how the queue behaves:
Beta Was this translation helpful? Give feedback.
All reactions