Skip to content

Commit

Permalink
Re-raise exception in dask_scheduler.py
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
  • Loading branch information
hendrikmakait and graingert authored May 12, 2022
1 parent 17384a3 commit aaa7321
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion distributed/cli/dask_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,12 @@ async def wait_for_signals_and_close():
wait_for_scheduler_to_finish()
)

await asyncio.wait(
done, _ = await asyncio.wait(
[wait_for_signals_and_close_task, wait_for_scheduler_to_finish_task],
return_when=asyncio.FIRST_COMPLETED,
)
# Re-raise exceptions from done tasks
[task.result() for task in done]
logger.info("Stopped scheduler at %r", scheduler.address)

try:
Expand Down

0 comments on commit aaa7321

Please sign in to comment.