Non-destructive: True if any background task has completed and is waiting to be collected. The inbox poller uses this in its wake condition.
()
| 345 | |
| 346 | |
| 347 | def 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) ── |
no outgoing calls
no test coverage detected