diff --git a/fed/api.py b/fed/api.py index caf8ef1..96fc47a 100644 --- a/fed/api.py +++ b/fed/api.py @@ -74,7 +74,7 @@ def init( sender_proxy_cls: SenderProxy = None, receiver_proxy_cls: ReceiverProxy = None, receiver_sender_proxy_cls: SenderReceiverProxy = None, - job_name: str = constants.RAYFED_DEFAULT_JOB_NAME, + job_name: str = None, sending_failure_handler: Callable[[Exception], None] = None, ): """ @@ -166,6 +166,9 @@ def init( assert party, "Party should be provided." assert party in addresses, f"Party {party} is not in the addresses {addresses}." + if job_name is None: + job_name = constants.RAYFED_DEFAULT_JOB_NAME + fed_utils.validate_addresses(addresses) init_global_context( current_party=party,