Skip to content

Commit

Permalink
Removed the extra client app custom folder. (#3101)
Browse files Browse the repository at this point in the history
  • Loading branch information
yhwen authored Dec 12, 2024
1 parent f3e1e0d commit 8f6a88f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
9 changes: 0 additions & 9 deletions nvflare/private/fed/client/client_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,22 +347,13 @@ def start_app(
if not os.path.exists(app_root):
return f"{ERROR_MSG_PREFIX}: Client app does not exist. Please deploy it before starting client."

app_custom_folder = os.path.join(app_root, "custom")
if os.path.isdir(app_custom_folder):
try:
sys.path.index(app_custom_folder)
except ValueError:
_remove_custom_path()
sys.path.append(app_custom_folder)

self.logger.info("Starting client app. rank: {}".format(self.rank))

self.client_executor.start_app(
self.client,
job_id,
job_meta,
self.args,
app_custom_folder,
allocated_resource,
token,
resource_manager,
Expand Down
4 changes: 0 additions & 4 deletions nvflare/private/fed/client/client_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def start_app(
job_id,
job_meta,
args,
app_custom_folder,
allocated_resource,
token,
resource_manager,
Expand All @@ -53,7 +52,6 @@ def start_app(
client: the FL client object
job_id: the job_id
args: admin command arguments for starting the FL client training
app_custom_folder: FL application custom folder
allocated_resource: allocated resources
token: token from resource manager
resource_manager: resource manager
Expand Down Expand Up @@ -145,7 +143,6 @@ def start_app(
job_id,
job_meta,
args,
app_custom_folder,
allocated_resource,
token,
resource_manager: ResourceManagerSpec,
Expand All @@ -158,7 +155,6 @@ def start_app(
job_id: the job_id
job_meta: job meta data
args: admin command arguments for starting the worker process
app_custom_folder: FL application custom folder
allocated_resource: allocated resources
token: token from resource manager
resource_manager: resource manager
Expand Down

0 comments on commit 8f6a88f

Please sign in to comment.