Clémentine commited on
Commit
510a6cc
·
1 Parent(s): 096bf86

status update

Browse files
Files changed (1) hide show
  1. utils/jobs.py +2 -2
utils/jobs.py CHANGED
@@ -75,7 +75,7 @@ def run_single_job(model: str, provider: str, tasks: str) -> Optional[str]:
75
  with globals.results_lock:
76
  if key in globals.job_results:
77
  current_status = globals.job_results[key].get("status")
78
- if current_status == "running":
79
  print( f"Job for {model} on {provider} is already running. Please wait for it to complete.")
80
  return -1
81
 
@@ -109,7 +109,7 @@ def run_single_job(model: str, provider: str, tasks: str) -> Optional[str]:
109
  "model": model,
110
  "provider": provider,
111
  "last_run": datetime.now().strftime("%Y-%m-%d %H:%M:%S"),
112
- "status": "running",
113
  "current_score": None,
114
  "previous_score": previous_score,
115
  "job_id": job_id
 
75
  with globals.results_lock:
76
  if key in globals.job_results:
77
  current_status = globals.job_results[key].get("status")
78
+ if current_status == "RUNNING":
79
  print( f"Job for {model} on {provider} is already running. Please wait for it to complete.")
80
  return -1
81
 
 
109
  "model": model,
110
  "provider": provider,
111
  "last_run": datetime.now().strftime("%Y-%m-%d %H:%M:%S"),
112
+ "status": "RUNNING",
113
  "current_score": None,
114
  "previous_score": previous_score,
115
  "job_id": job_id