Skip to content

Commit 52cbcb9

Browse files
author
Symbiont OSS Sync
committed
Gracefully degrade schedule/channel list API when subsystems are not running
1 parent 76a3bf5 commit 52cbcb9

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

crates/runtime/src/lib.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -648,10 +648,8 @@ impl RuntimeApiProvider for AgentRuntime {
648648
// ── Schedule endpoints ──────────────────────────────────────────
649649

650650
async fn list_schedules(&self) -> Result<Vec<ScheduleSummary>, RuntimeError> {
651-
Err(RuntimeError::Internal(
652-
"Schedule API requires a running CronScheduler (use `symbi up` with --features cron)"
653-
.to_string(),
654-
))
651+
// No CronScheduler — return empty list so dashboard renders gracefully
652+
Ok(vec![])
655653
}
656654

657655
async fn create_schedule(
@@ -750,9 +748,8 @@ impl RuntimeApiProvider for AgentRuntime {
750748
// ── Channel endpoints ──────────────────────────────────────────
751749

752750
async fn list_channels(&self) -> Result<Vec<ChannelSummary>, RuntimeError> {
753-
Err(RuntimeError::Internal(
754-
"Channel API requires a running ChannelAdapterManager".to_string(),
755-
))
751+
// No ChannelAdapterManager — return empty list so dashboard renders gracefully
752+
Ok(vec![])
756753
}
757754

758755
async fn register_channel(

0 commit comments

Comments
 (0)