From 5d141db3e89d46b8804aef44b4d3731ff85aa937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Drago=C8=99?= Date: Thu, 26 Sep 2024 23:19:32 +0200 Subject: [PATCH] logging current task --- whisper_api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/whisper_api.py b/whisper_api.py index db3ec87..e1a21cd 100644 --- a/whisper_api.py +++ b/whisper_api.py @@ -110,6 +110,7 @@ async def create_task( task: Task, background_tasks: BackgroundTasks, response: Response ): global current_task + print(current_task) if current_task and current_task.status == "PROCESSING": response.status_code = status.HTTP_503_SERVICE_UNAVAILABLE return {"msg": "The worker is currently processing a task. Try again later!"}