Skip to content

Commit

Permalink
Update api/src/opentrons/protocol_engine/execution/queue_worker.py
Browse files Browse the repository at this point in the history
  • Loading branch information
TamarZanzouri authored Jun 26, 2024
1 parent 048765f commit dd21d85
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/src/opentrons/protocol_engine/execution/queue_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,6 @@ async def join(self) -> None:
async def _run_commands(self) -> None:
async for command_id in self._command_generator():
await self._command_executor.execute(command_id=command_id)
# Yield to the event loop in case we're executing a long sequence of commands
# that never yields internally. For example, a long sequence of comment commands.
await asyncio.sleep(0)

0 comments on commit dd21d85

Please sign in to comment.