MCPcopy Create free account
hub / github.com/stemdeckapp/stemdeck / _sweep_loop

Function _sweep_loop

app/main.py:110–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108
109
110async def _sweep_loop() -> None:
111 if _sweep_disabled():
112 _log.info("desktop mode: job TTL sweep disabled (library is user-managed)")
113 return
114 while True:
115 try:
116 await asyncio.to_thread(sweep_old_jobs, JOBS_DIR)
117 except Exception:
118 _log.warning("sweep failed", exc_info=True)
119 await asyncio.sleep(3600)
120
121
122async def _desktop_parent_watchdog(parent_pid: int) -> None:

Callers 2

lifespanFunction · 0.85

Calls 1

_sweep_disabledFunction · 0.85