File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -10,5 +10,5 @@ class DistributedSubJob(BaseModel):
1010    extractor_job : TrainableEntityExtractorJob 
1111    retry_count : int  =  0 
1212    max_retries : int  =  2 
13-     status : JobStatus  =  JobStatus .WAITING 
13+     status : JobStatus  =  JobStatus .PENDING 
1414    result : Performance  |  bool  |  None  =  None 
Original file line number Diff line number Diff line change 22
33
44class  JobStatus (StrEnum ):
5-     WAITING  =  "WAITING" 
65    PENDING  =  "PENDING" 
76    RUNNING  =  "RUNNING" 
87    SUCCESS  =  "SUCCESS" 
98    FAILURE  =  "FAILURE" 
109    CANCELED  =  "CANCELED" 
11-     RETRY  =  "RETRY" 
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ def _process_training_job(self, distributed_job: DistributedJob) -> JobProcessin
5050        extraction_identifier  =  distributed_job .extraction_identifier 
5151        sub_job  =  distributed_job .sub_jobs [0 ]
5252
53-         if  sub_job .status  ==  JobStatus .WAITING :
53+         if  sub_job .status  ==  JobStatus .PENDING :
5454            self .job_executor .start_training (extraction_identifier , sub_job )
5555
5656        if  sub_job .status  ==  JobStatus .SUCCESS :
@@ -132,7 +132,7 @@ def _start_pending_performance_evaluations(self, distributed_job: DistributedJob
132132                self ._cancel_and_remove_job (distributed_job )
133133                return 
134134
135-             if  sub_job .status  ==  JobStatus .WAITING :
135+             if  sub_job .status  ==  JobStatus .PENDING :
136136                self .job_executor .start_performance_evaluation (distributed_job .extraction_identifier , sub_job )
137137
138138            if  sub_job .result  and  hasattr (sub_job .result , "is_perfect" ) and  sub_job .result .is_perfect :
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments