From 5e4ddac6630920773f610cf121f391420c8e137f Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 10 Apr 2026 15:17:56 +0800 Subject: [PATCH] bugfix --- llmage/asyncinference.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llmage/asyncinference.py b/llmage/asyncinference.py index dc8c44b..c1345cb 100644 --- a/llmage/asyncinference.py +++ b/llmage/asyncinference.py @@ -173,8 +173,9 @@ async def query_task_status(request, upappid, apiname, luid, userid, taskid): if lastoutout['status'] != new_output['status']: llmusage.status = new_output['status'] await append_new_llmoutput(llmusage.id, new_output) - if llmusage.status in ['FAILED', 'SUCCEEDED']: await modify_llmusage_status(llmusage) + if llmusage.status in ['FAILED', 'SUCCEEDED']: + debug(f'finished .. {llmusage.status=}') return await asyncio.sleep(llm.query_period or 30)