{"record":{"id":"0fd9974732f4ebe7","repo":"zylon-ai/private-gpt","slug":"async-deletion-is-not-supported-by-the-configured","errorCode":null,"errorMessage":"Async deletion is not supported by the configured scheduler","messagePattern":"Async deletion is not supported by the configured scheduler","errorType":"http","errorClass":"HTTPException","httpStatus":501,"severity":"error","filePath":"private_gpt/server/ingest/ingest_router.py","lineNumber":967,"sourceCode":"def delete_ingested_async(\n    request: Request, body: DeleteIngestedDocumentAsyncBody\n) -> Task:\n    \"\"\"Initiates asynchronous deletion of a document and all associated data.\n\n    This endpoint queues a deletion task for background processing, making it\n    suitable for large documents or when non-blocking operation is required.\n    The task can be monitored using the returned task ID.\n\n    If an ingestion task is currently running for the same document, it will\n    be automatically revoked before initiating the deletion.\n    \"\"\"\n    scheduler = request.state.injector.get(IngestionSchedulerFactory).get()\n    try:\n        task_id = scheduler.delete_async(body)\n    except NotImplementedError as exc:\n        from fastapi import HTTPException\n\n        raise HTTPException(\n            status_code=501,\n            detail=\"Async deletion is not supported by the configured scheduler\",\n        ) from exc\n    return Task(task_id=task_id)\n\n\nif _CELERY_AVAILABLE:\n\n    @ingest_router.get(\n        \"/delete/async/{task_id}\",\n        response_model=TaskStatus[None],\n        tags=[\"Artifacts\"],\n        summary=\"Check Deletion Task Status\",\n        description=\"Retrieve the current status of an asynchronous deletion task\",\n        responses={\n            200: {\n                \"description\": \"Successfully retrieved task status\",\n                \"content\": {","sourceCodeStart":949,"sourceCodeEnd":985,"githubUrl":"https://github.com/zylon-ai/private-gpt/blob/4a030776a31a901ad80b1bf4d7faa2c1a367efbb/private_gpt/server/ingest/ingest_router.py#L949-L985","documentation":"Error \"Async deletion is not supported by the configured scheduler\" thrown in zylon-ai/private-gpt.","triggerScenarios":"Raised when an async deletion request is made but the configured scheduler cannot run deletion jobs asynchronously.","commonSituations":"Requesting async deletion of ingested documents with the local scheduler configured; use sync deletion or configure an async-capable scheduler.","solutions":["Configure a scheduler that supports async deletion (e.g. scheduler.chat.mode='arq' with the arq worker running).","Use the synchronous deletion endpoint instead of async deletion.","Enable the Redis/arq backend so the configured scheduler can process async deletion tasks."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4a030776a31a901ad80b1bf4d7faa2c1a367efbb","analyzedAt":"2026-08-15T03:51:26.951Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}