You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to beanstalk-talk
I want to communicate to a websocket server (written in Perl) also via a beanstalk queue. However if I use the blocking reserve command then it will not respond to web-socket calls.
I could poll the reserve queue periodically but this is not ideal.
Ideally I would like to implement a callback, but all my searching (both in Google and in this group) brings up nothing.
Any suggestions on how to implement this cleanly?
Kind Regards
Iain
Scott Wiersdorf
unread,
Jun 29, 2016, 3:53:15 PM6/29/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to beanstalk-talk
I think the only option you have is reserve-with-timeout, but you can set the timeout to be 0s so that it won't block your event loop (I don't know if reserve-with-timeout accepts fractional seconds—try it). You may have to handle the "TIMED_OUT" or "DEADLINE_SOON" responses, so be sure to check for those (depending on what client you're using).
Scott
Nigel Gregoire
unread,
Jun 29, 2016, 8:28:18 PM6/29/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message