From 56933c32a315db71d44fe5329861cb14a3056237 Mon Sep 17 00:00:00 2001 From: Wen Guan Date: Thu, 10 Nov 2022 18:20:06 +0100 Subject: [PATCH] fix that connection name is too long --- main/lib/idds/core/requests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/lib/idds/core/requests.py b/main/lib/idds/core/requests.py index a84937c1..01087741 100644 --- a/main/lib/idds/core/requests.py +++ b/main/lib/idds/core/requests.py @@ -209,7 +209,7 @@ def generate_collection(transform, collection, relation_type=CollectionRelationT 'workload_id': transform['workload_id'], 'coll_type': coll_type, 'scope': collection.scope, - 'name': collection.name, + 'name': collection.name[:254], 'relation_type': relation_type, 'bytes': coll_metadata['bytes'] if 'bytes' in coll_metadata else 0, 'total_files': coll_metadata['total_files'] if 'total_files' in coll_metadata else 0,