Use public `tractor.Context.cancel_called` property

wkt/history_segment_refill
Gud Boi 2026-09-24 14:24:14 -04:00
parent 762c59d7c7
commit 526666a357
1 changed files with 1 additions and 1 deletions

View File

@ -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'