File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -19,16 +19,17 @@ def process_inference_job_queue():
19
19
20
20
try :
21
21
# Reevaluate progress and update status of all inference jobs that are not currently queued
22
- for job in InferenceJob .objects .exclude (status = InferenceJobStatus .QUEUED ):
23
- job .reevaluate_progress_and_update_status ()
22
+ # for job in InferenceJob.objects.exclude(status=InferenceJobStatus.QUEUED):
23
+ # job.reevaluate_progress_and_update_status()
24
24
25
25
# Look for pending jobs first
26
26
pending_jobs = InferenceJob .objects .filter (status = InferenceJobStatus .PENDING )
27
27
28
28
if pending_jobs .exists ():
29
- # Process pending jobs
29
+ # Refresh and process pending jobs
30
30
for job in pending_jobs :
31
31
job .refresh_external_jobs_status_and_store_results ()
32
+ job .reevaluate_progress_and_update_status ()
32
33
else :
33
34
# If no pending jobs, try to initiate a queued job
34
35
queued_job = (
You can’t perform that action at this time.
0 commit comments