@@ -171,12 +171,11 @@ def _create_tarball(collaborator_name, data_file_path, local_bind_path, add_data
171171 return True
172172
173173
174- def import_pki_for_collaborators (collaborators , local_bind_path ):
174+ def import_pki_for_collaborators (collaborators ):
175175 """
176176 Import and certify the CSR for the collaborators
177177 """
178178 executor = concurrent .futures .ThreadPoolExecutor ()
179- local_agg_ws_path = constants .AGG_WORKSPACE_PATH .format (local_bind_path )
180179 try :
181180 results = [
182181 executor .submit (
@@ -359,13 +358,21 @@ def _verify_completion_for_participant(
359358 ):
360359 with open (participant .res_file , "r" ) as file :
361360 lines = [line .strip () for line in file .readlines ()]
362- content = list (filter (str .rstrip , lines ))[- 1 :]
361+ # Below change is done to incorporate warnings coming in end of runs
362+ content = list (filter (str .rstrip , lines ))[- 7 :] if len (lines ) >= 7 else lines
363363
364364 # Print last line of the log file on screen to track the progress
365- log .info (f"Last line in { participant .name } log: { content } " )
365+ log .info (f"Last line in { participant .name } log: { lines [ - 1 :] } " )
366366 if constants .SUCCESS_MARKER in content :
367367 break
368368 log .info (f"Process is yet to complete for { participant .name } " )
369+ # If in logs Exception is encountered, throw Exception and stop the process
370+ if constants .EXCEPTION in content :
371+ log .error (
372+ f"Process { participant .name } is throwing Exception. Check the logs for more details"
373+ )
374+ raise Exception (f"Process failed for { participant .name } " )
375+
369376 time .sleep (45 )
370377
371378 if constants .SUCCESS_MARKER not in content :
@@ -430,6 +437,7 @@ def federation_env_setup_and_validate(request, eval_scope=False):
430437 f"\t Model name: { request .config .model_name } \n "
431438 f"\t Client authentication: { request .config .require_client_auth } \n "
432439 f"\t TLS: { request .config .use_tls } \n "
440+ f"\t Secure Aggregation: { request .config .secure_agg } \n "
433441 f"\t Memory Logs: { request .config .log_memory_usage } \n "
434442 f"\t Results directory: { request .config .results_dir } \n "
435443 f"\t Workspace path: { workspace_path } "
0 commit comments