INNER CODE UNIT · Python

delete_schedule

bunkeriot/BunkerM · backend/app/agent-api/main.py:411

async def delete_schedule(job_id: str, x_api_key: str = Header(...)):
    _auth(x_api_key)
    with _lock:
        data = _load_agents()
        data["jobs"] = [j for j in data["jobs"] if j["id"] != job_id]
        _save_agents(data)
    try:
        scheduler.remove_job(job_id)
    except Exception:
        pass
    return {"ok": True}


# ─── Local LLM (LM Studio) ────────────────────────────────────────────────────

LOCAL_LLM_CONFIG_FILE = DATA_DIR / "local_llm_config.json"
_DEFAULT_LLM_URL = "http://host.docker.internal:1234"

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…