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 On Wednesday, June 29, 2016 at 12:12:27 PM UTC-6, Iain C Docherty wrote: > > 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 > -- You received this message because you are subscribed to the Google Groups "beanstalk-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/beanstalk-talk. For more options, visit https://groups.google.com/d/optout.
