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 4, 2022
1 parent 3cc145b commit 4c078a3
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 @@ -591,7 +591,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 4c078a3

Please sign in to comment.