cleanup(sources): redundanten /health/run Endpoint entfernen
Frontend ruft ausschliesslich /health/run-stream auf. Der Legacy-Endpoint /health/run war ein simples synchrones Pendant ohne Fortschrittsanzeige und wurde nirgends mehr aufgerufen (verifiziert via grep -r im Repo). Schritt 2 der Quellen-Health-Aufraeumung. Reine Code-Saeuberung, keine UX- oder Backend-Verhaltensaenderung.
Dieser Commit ist enthalten in:
@@ -821,28 +821,6 @@ async def update_suggestion(
|
|||||||
return {"status": new_status, "action": result_action}
|
return {"status": new_status, "action": result_action}
|
||||||
|
|
||||||
|
|
||||||
@router.post("/health/run")
|
|
||||||
async def run_health_check_now(
|
|
||||||
admin: dict = Depends(get_current_admin),
|
|
||||||
db: aiosqlite.Connection = Depends(db_dependency),
|
|
||||||
):
|
|
||||||
"""Health-Check manuell starten."""
|
|
||||||
# source_health und source_suggester importieren
|
|
||||||
from shared.services.source_health import run_health_checks
|
|
||||||
from shared.services.source_suggester import generate_suggestions
|
|
||||||
|
|
||||||
result = await run_health_checks(db)
|
|
||||||
suggestion_count = await generate_suggestions(db)
|
|
||||||
|
|
||||||
return {
|
|
||||||
"checked": result["checked"],
|
|
||||||
"issues": result["issues"],
|
|
||||||
"suggestions": suggestion_count,
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@router.post("/health/run-stream")
|
@router.post("/health/run-stream")
|
||||||
async def run_health_check_stream(
|
async def run_health_check_stream(
|
||||||
|
|||||||
In neuem Issue referenzieren
Einen Benutzer sperren