Skip to content

Commit b96371a

Browse files
committed
fix: add debug logs to empty except clauses in scheduler mismatch checks
1 parent 7617b67 commit b96371a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/orb/infrastructure/scheduler/base/strategy.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,9 @@ def _delegate_load_to_strategy(
380380
"on_scheduler_mismatch",
381381
"warn",
382382
)
383-
except Exception:
384-
pass
383+
except Exception as e:
384+
# Config unavailable — default to warn so mismatch doesn't hard-fail
385+
self.logger.debug("Could not read on_scheduler_mismatch config: %s", e)
385386

386387
if mismatch_action == "fail":
387388
from orb.infrastructure.template.configuration_manager import (

src/orb/infrastructure/template/configuration_manager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,9 +591,10 @@ def _validate_basic_template_structure(
591591
mismatch_action = getattr(
592592
self.config_manager.app_config.scheduler, "on_scheduler_mismatch", "warn"
593593
)
594-
except Exception:
594+
except Exception as e:
595595
active_scheduler_type = None
596596
mismatch_action = "warn"
597+
self.logger.debug("Could not read scheduler config for mismatch check: %s", e)
597598

598599
if active_scheduler_type and template_scheduler_type != active_scheduler_type:
599600
msg = (

0 commit comments

Comments
 (0)