Skip to content

Commit 04693ab

Browse files
Test Botclaude
andcommitted
orchestrator: gate freeshard loop behind fs_enabled
_run_with_pebble now only schedules _freeshard_loop when settings.fs_enabled is true; the Pebble webhook server and worker always run. Logs whether the loop is enabled or disabled so the container state is visible at startup. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent ac87e10 commit 04693ab

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/clayde/orchestrator.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,13 @@ async def worker_task() -> None:
5858
kb_path=settings.kb_path,
5959
)
6060

61-
await asyncio.gather(server.serve(), worker_task(), _freeshard_loop(settings))
61+
tasks = [server.serve(), worker_task()]
62+
if settings.fs_enabled:
63+
log.info("Freeshard loop enabled")
64+
tasks.append(_freeshard_loop(settings))
65+
else:
66+
log.info("Freeshard loop disabled (CLAYDE_FS_ENABLED not set)")
67+
await asyncio.gather(*tasks)
6268

6369

6470
def run_loop():

0 commit comments

Comments
 (0)