From b9fc72dc297f16386a03020ae2bc65a1ae7d212d Mon Sep 17 00:00:00 2001 From: Ilija Vukotic Date: Wed, 4 Oct 2023 10:29:29 -0500 Subject: [PATCH] comments --- src/servicex_did_finder_lib/servicex_adaptor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/servicex_did_finder_lib/servicex_adaptor.py b/src/servicex_did_finder_lib/servicex_adaptor.py index d15789f..33d67ed 100644 --- a/src/servicex_did_finder_lib/servicex_adaptor.py +++ b/src/servicex_did_finder_lib/servicex_adaptor.py @@ -44,6 +44,8 @@ def __init__(self, endpoint, dataset_id, request_id=None, file_prefix=None): self.logger = logging.getLogger(__name__) self.logger.addHandler(logging.NullHandler()) + # TODO - remove. did finder should not know about request_id and call any + # endpoint with request_id. def post_status_update(self, status_msg, severity="info"): success = False attempts = 0 @@ -64,8 +66,7 @@ def post_status_update(self, status_msg, severity="info"): self.logger.error(f'After {attempts} tries, failed to send ServiceX App a status ' f'message: {str(status_msg)} - Ignoring error.') - # not needed anymore - # ???? + # TODO - remove def _prefix_file(self, file_path): return file_path if not self.file_prefix else self.file_prefix+file_path