Interrupting BLPOP

14 views
Skip to first unread message

Oscar Besga

unread,
Nov 19, 2021, 1:34:12 PM11/19/21
to Jedis
Hi all

When I do a  BLPOP operation, 

List<String> result = jedis.blpop(blpopName, "0");

I see that BLPOP waits indefinitely;
and even if I try a thread.interrupt() the operation contiues waiting.

Is there a way to interrupt a BLPOP  operation ?


Thanks

Oscar Besga

unread,
Nov 19, 2021, 1:45:45 PM11/19/21
to Jedis
Also tried to cancel jedis connection
And look here

Looks like blpop is uninterruptible and best option is long polling

But if anyone knows betterr....

Oscar Besga

unread,
Nov 19, 2021, 1:46:07 PM11/19/21
to Jedis
Reply all
Reply to author
Forward
0 new messages