mirror of
https://github.com/bellingcat/whisperbox-transcribe.git
synced 2026-06-12 21:48:35 +03:00
fix: worker health check
This commit is contained in:
@@ -16,12 +16,6 @@ from app.web.security import authenticate_api_key
|
||||
app = FastAPI()
|
||||
celery = get_celery_binding()
|
||||
|
||||
api_router = APIRouter(
|
||||
prefix="/api/v1",
|
||||
dependencies=[Depends(authenticate_api_key)],
|
||||
responses={**DEFAULT_RESPONSES},
|
||||
)
|
||||
|
||||
|
||||
def queue_task(job: models.Job) -> None:
|
||||
# queue an async transcription task.
|
||||
@@ -32,6 +26,13 @@ def queue_task(job: models.Job) -> None:
|
||||
transcribe.delay(job.id)
|
||||
|
||||
|
||||
api_router = APIRouter(
|
||||
prefix="/api/v1",
|
||||
dependencies=[Depends(authenticate_api_key)],
|
||||
responses={**DEFAULT_RESPONSES},
|
||||
)
|
||||
|
||||
|
||||
@api_router.get("/", response_model=None, status_code=204)
|
||||
def api_root() -> None:
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user