diff --git a/lib/galaxy/managers/histories.py b/lib/galaxy/managers/histories.py index 48ac4ea8b643..27d2a5902dc5 100644 --- a/lib/galaxy/managers/histories.py +++ b/lib/galaxy/managers/histories.py @@ -698,6 +698,7 @@ def get_record_metadata(self, export: model.StoreExportAssociation) -> Optional[ def _serialize_task_export(self, export: model.StoreExportAssociation, history: model.History): task_uuid = export.task_uuid export_date = export.create_time + assert history.update_time is not None, "History update time must be set" history_has_changed = history.update_time > export_date export_metadata = self.get_record_metadata(export) is_ready = export_metadata is not None and export_metadata.is_ready()