Skip to content

Commit bc13de0

Browse files
committed
Fix get jobs
1 parent 2ec2664 commit bc13de0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/trainable_entity_extractor/use_cases/TrainUseCase.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,12 @@ def get_performance(
3737
return None
3838

3939
def get_jobs(self, extraction_data: ExtractionData) -> list[TrainableEntityExtractorJob]:
40-
jobs = list()
4140
for extractor in self.extractors:
4241
extractor_instance = extractor(extraction_data.extraction_identifier, self.logger)
4342

4443
if not extractor_instance.can_be_used(extraction_data):
4544
continue
4645

47-
jobs = extractor_instance.get_distributed_jobs(extraction_data)
46+
return extractor_instance.get_distributed_jobs(extraction_data)
4847

49-
return jobs
48+
return []

0 commit comments

Comments
 (0)