Skip to content

Commit

Permalink
FLARE-136: Fixed the exception in list_jobs when study is None (NVIDI…
Browse files Browse the repository at this point in the history
  • Loading branch information
nvidianz authored Apr 26, 2022
1 parent be0a630 commit 0aa5858
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions nvflare/fuel/hci/server/file_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,10 @@ def submit_job(self, conn: Connection, args: List[str]):
meta = json.loads(meta_data)
if JobMetaKey.JOB_FOLDER_NAME not in meta:
meta[JobMetaKey.JOB_FOLDER_NAME.value] = folder_name
study_name = meta.get(JobMetaKey.STUDY_NAME.value)
if not study_name:
meta[JobMetaKey.STUDY_NAME.value] = Study.DEFAULT_STUDY_NAME

valid, error = self._validate_job(meta, study_manager, fl_ctx)
if not valid:
conn.append_error(error)
Expand Down
10 changes: 5 additions & 5 deletions nvflare/private/fed/server/job_cmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,11 @@ def _send_summary_list(self, conn: Connection, jobs: List[Job]):
for job in jobs:
table.add_row(
[
job.meta.get("job_id"),
job.meta.get("name"),
job.meta.get("study_name"),
job.meta.get("status"),
job.meta.get("submit_time_iso"),
job.meta.get("job_id", ""),
job.meta.get("name", ""),
job.meta.get("study_name", ""),
job.meta.get("status", ""),
job.meta.get("submit_time_iso", ""),
]
)

Expand Down

0 comments on commit 0aa5858

Please sign in to comment.