Skip to content

Commit e5677b2

Browse files
committed
Set sweep to finished even if status is LAUNCHING
1 parent 7ec4733 commit e5677b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/transformerlab/services/sweep_status_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ async def apply_parent_sweep_updates(
110110
await job_service.job_update_sweep_progress(job_id, counts["sweep_progress"], experiment_id)
111111

112112
all_complete = counts["sweep_completed"] + counts["sweep_failed"] == counts["sweep_total"]
113-
if all_complete and job.get("status") == "RUNNING":
113+
if all_complete and job.get("status") in ACTIVE_SWEEP_PARENT_STATUSES:
114114
await job_service.job_update_job_data_insert_key_value(
115115
job_id,
116116
"end_time",

0 commit comments

Comments
 (0)