A lot of times my queue will remain empty. But when it does fill up, how does that queue notify my server to execute a python script?
I could make it so that the python script hits the queue every 5 seconds, but that’s silly.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should have a consumer on the queue, which registers a callback. The consumer will then poll the queue and call the callback when an item is received.
You don’t say how you’re accessing the queue, but a library like carrot does this for you.