Skip to content

Commit

Permalink
scheduler: separate "expected" and "unexpected" errrors
Browse files Browse the repository at this point in the history
* Closes #5530
* Timeouts should no longer trigger the "unexpected error" message.
  • Loading branch information
oliver-sanders committed May 11, 2023
1 parent e3dc3cd commit 3e28e9d
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 3e28e9d

Please sign in to comment.