Skip to content

Commit

Permalink
Merge pull request #2223 from FedML-AI/alaydshah/bugfix/name
Browse files Browse the repository at this point in the history
Making provider name optional
  • Loading branch information
alaydshah authored Sep 12, 2024
2 parents c7bfa63 + 16417d5 commit 03f37b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion python/fedml/api/modules/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def _bind(
"-pph",
str(price_per_hour),
"-n",
name
str(name)
]
).pid
sys_utils.save_login_process(ClientConstants.LOCAL_HOME_RUNNER_DIR_NAME,
Expand Down
5 changes: 2 additions & 3 deletions python/fedml/computing/scheduler/slave/client_daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

import fedml
from fedml.computing.scheduler.comm_utils.sys_utils import cleanup_all_fedml_client_api_processes, \
cleanup_all_fedml_client_learning_processes, cleanup_all_fedml_client_login_processes, get_python_program, \
daemon_ota_upgrade
cleanup_all_fedml_client_learning_processes, cleanup_all_fedml_client_login_processes, get_python_program
from fedml.computing.scheduler.scheduler_core.general_constants import MarketplaceType
from fedml.computing.scheduler.slave.client_constants import ClientConstants
from fedml.computing.scheduler.comm_utils.run_process_utils import RunProcessUtils
Expand All @@ -27,7 +26,7 @@
parser.add_argument("--local_on_premise_platform_port", "-lpp", type=int, default=80)
parser.add_argument("--marketplace_type", "-mpt", type=str, default=MarketplaceType.SECURE.name)
parser.add_argument("--price_per_hour", "-pph", type=str, default="0.0")
parser.add_argument("--name", "-n", type=str, default="")
parser.add_argument("--name", "-n", type=str, nargs='?', default="")

args = parser.parse_args()
args.user = args.user
Expand Down
2 changes: 1 addition & 1 deletion python/fedml/computing/scheduler/slave/client_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def logout():
parser.add_argument("--local_on_premise_platform_port", "-lpp", type=int, default=80)
parser.add_argument("--marketplace_type", "-mpt", type=str, default=MarketplaceType.SECURE.name)
parser.add_argument("--price_per_hour", "-pph", type=str, default="0.0")
parser.add_argument("--name", "-n", type=str, default="")
parser.add_argument("--name", "-n", type=str, nargs='?', default="")

args = parser.parse_args()
args.user = args.user
Expand Down

0 comments on commit 03f37b8

Please sign in to comment.