fix: close scheduler persistence and capacity gaps

This commit is contained in:
lda
2026-09-09 19:13:17 +07:00 Verified
parent 39993c9d5e
commit 787a3c433f
7 changed files with 296 additions and 13 deletions
@@ -97,6 +97,16 @@ def test_build_scheduler_service_wires_server_stores(tmp_path: Path) -> None:
assert service.ownership.lock_path == server.config.store_root / "scheduler.lock"
def test_build_scheduler_service_shares_schedule_store_with_server_api(
tmp_path: Path,
) -> None:
"""Enabled scheduler composition exposes the same store to API and poller."""
server = build_local_static_workflow_server(tmp_path)
service = build_scheduler_service(server, SchedulerServiceConfig(auto_tick=False))
assert server.api.schedules._schedule_store() is service.schedule_store
async def test_scheduler_service_start_stop_on_server_stores(
tmp_path: Path,
) -> None: