MCPcopy
hub / github.com/shareAI-lab/learn-claude-code / has_pending_background

Function has_pending_background

s15_agent_teams/code.py:347–351  ·  view source on GitHub ↗

Non-destructive: True if any background task has completed and is waiting to be collected. The inbox poller uses this in its wake condition.

()

Source from the content-addressed store, hash-verified

345
346
347def has_pending_background() -> bool:
348 """Non-destructive: True if any background task has completed and is
349 waiting to be collected. The inbox poller uses this in its wake condition."""
350 with background_lock:
351 return any(t["status"] == "completed" for t in background_tasks.values())
352
353
354# ── Cron Scheduler (from s14, synced) ──

Callers 2

inbox_pollerFunction · 0.85
code.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected