Skip to content

Commit

Permalink
Merge pull request #5531 from oliver-sanders/5530
Browse files Browse the repository at this point in the history
scheduler: separate "expected" and "unexpected" errrors
  • Loading branch information
hjoliver authored May 11, 2023
2 parents d756e69 + 3e28e9d commit 3d49d4f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cylc/flow/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,12 @@ async def run_scheduler(self) -> None:
except (KeyboardInterrupt, asyncio.CancelledError) as exc:
await self.handle_exception(exc)

except Exception as exc: # Includes SchedulerError
except CylcError as exc: # Includes SchedulerError
# catch "expected" errors
await self.handle_exception(exc)

except Exception as exc:
# catch "unexpected" errors
with suppress(Exception):
LOG.critical(
'An uncaught error caused Cylc to shut down.'
Expand Down

0 comments on commit 3d49d4f

Please sign in to comment.