Use public `tractor.Context.cancel_called` property

wkt/land_binance_usdm_feed
Gud Boi 2026-09-24 14:24:14 -04:00
parent b349332e6b
commit 3e3e0fdd46
1 changed files with 1 additions and 1 deletions

View File

@ -775,7 +775,7 @@ async def sample_and_broadcast(
# channel-ipc-pipe is still up.
if (
not chan.connected()
or ctx._cancel_called
or ctx.cancel_called
):
log.warning(
'Dropping broken consumer:\n'