From 12640bd37d1a84f69e2763397f70032622010a3e Mon Sep 17 00:00:00 2001 From: Tony Salomone Date: Fri, 20 Dec 2024 13:39:11 -0500 Subject: [PATCH] Change jobs to only use RUNNING, not IN_PROGRESS. --- transformerlab/shared/shared.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transformerlab/shared/shared.py b/transformerlab/shared/shared.py index 983a7b0..b756a0b 100644 --- a/transformerlab/shared/shared.py +++ b/transformerlab/shared/shared.py @@ -92,7 +92,7 @@ async def async_run_python_script_and_update_status(python_script: list[str], jo downloading a model. This function runs a python script and updates the status of the job in the database - to IN_PROGRESS when the python script prints begin_string to stderr + to RUNNING when the python script prints begin_string to stderr The FastAPI worker uses stderr, not stdout""" @@ -108,7 +108,7 @@ async def async_run_python_script_and_update_status(python_script: list[str], jo print(">> " + text) if begin_string in text: print(f"Job {job_id} now in progress!") - await db.job_update_status(job_id=job_id, status="IN_PROGRESS") + await db.job_update_status(job_id=job_id, status="RUNNING") await process.wait()