Skip to content

Commit 456c581

Browse files
committed
test what is in info
1 parent 2ee24f1 commit 456c581

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

servicex_app/servicex_app/resources/internal/transformer_file_complete.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ def record_file_complete(session: Session, logger: Logger, request_id: str,
168168
@staticmethod
169169
@file_complete_ops_retry
170170
def save_transform_result(request_id: str, info: dict[str, str], session: Session):
171+
import json
171172
with session.begin():
172173
rec = TransformationResult(
173174
file_id=info['file-id'],
@@ -178,7 +179,7 @@ def save_transform_result(request_id: str, info: dict[str, str], session: Sessio
178179
total_bytes=info['total-bytes'],
179180
total_events=info['total-events'],
180181
avg_rate=info['avg-rate'],
181-
s3_object_name=info['s3-object-name'],
182+
s3_object_name=json.dumps(info),
182183
)
183184
session.add(rec)
184185

0 commit comments

Comments
 (0)