Use public `tractor.Context.cancel_called` property
parent
d126302fb9
commit
c0dae89af3
|
|
@ -781,7 +781,7 @@ async def sample_and_broadcast(
|
||||||
# channel-ipc-pipe is still up.
|
# channel-ipc-pipe is still up.
|
||||||
if (
|
if (
|
||||||
not chan.connected()
|
not chan.connected()
|
||||||
or ctx._cancel_called
|
or ctx.cancel_called
|
||||||
):
|
):
|
||||||
log.warning(
|
log.warning(
|
||||||
'Dropping broken consumer:\n'
|
'Dropping broken consumer:\n'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue