Skip to content

Commit

Permalink
let's at least do some logging
Browse files Browse the repository at this point in the history
  • Loading branch information
sfoster1 committed Oct 25, 2024
1 parent a2d2cf8 commit e3043b9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/src/opentrons/protocol_engine/execution/queue_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ 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)
try:
await self._command_executor.execute(command_id=command_id)
except BaseException:
log.exception('Unhandled failure in command executor')
raise
# 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 e3043b9

Please sign in to comment.