Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions sde_collections/models/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,12 +691,17 @@ def generate_inference_job(self, classification_type):

def queue_necessary_classifications(self):
"""Check if collection needs classification and queue jobs if needed"""

# Determine which classifications are needed
if self.division == Divisions.ASTROPHYSICS:
tdamm_collections = [
"imagine_the_universe",
"physics_of_the_cosmos",
"stsci_space_telescope_science_institute",
]
if self.config_folder in tdamm_collections:
self.generate_inference_job(ClassificationType.TDAMM)
elif self.division == Divisions.GENERAL:
self.generate_inference_job(ClassificationType.DIVISION)
# if self.division == Divisions.ASTROPHYSICS:
# self.generate_inference_job(ClassificationType.TDAMM)
# elif self.division == Divisions.GENERAL:
# self.generate_inference_job(ClassificationType.DIVISION)
else:
# No classification needed, proceed directly to migration
migrate_dump_to_delta_and_handle_status_transistions.delay(self.id)
Expand Down