diff --git a/lib/galaxy/managers/export_tracker.py b/lib/galaxy/managers/export_tracker.py index 29ec780e0261..e7f2a6805659 100644 --- a/lib/galaxy/managers/export_tracker.py +++ b/lib/galaxy/managers/export_tracker.py @@ -64,7 +64,11 @@ def get_object_exports( StoreExportAssociation, ) .where( - and_(StoreExportAssociation.object_type == object_type, StoreExportAssociation.object_id == object_id) + and_( + StoreExportAssociation.object_type == object_type, + StoreExportAssociation.object_id == object_id, + StoreExportAssociation.task_uuid.is_not(None), + ) ) .order_by(StoreExportAssociation.create_time.desc()) )