Skip to content

Commit

Permalink
Allow a loop cycle after every message in the batch
Browse files Browse the repository at this point in the history
  • Loading branch information
fjetter committed Feb 15, 2022
1 parent f25f1fc commit 9da4c46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distributed/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ async def handle_stream(self, comm, extra=None, every_cycle=[]):
handler(**merge(extra, msg))
else:
logger.error("odd message %s", msg)
await asyncio.sleep(0)
await asyncio.sleep(0)

for func in every_cycle:
if is_coroutine_function(func):
Expand Down

0 comments on commit 9da4c46

Please sign in to comment.