Skip to content

Commit

Permalink
Added more logging for the job status changing.
Browse files Browse the repository at this point in the history
  • Loading branch information
yhwen committed Apr 10, 2024
1 parent 656cec6 commit e980b60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nvflare/private/fed/server/job_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ def run(self, fl_ctx: FLContext):
},
fl_ctx,
)
self.log_info(f"Updated the schedule history of Job: {job_id}")

if failed_clients:
deployable_clients = {k: v for k, v in client_sites.items() if k not in failed_clients}
Expand All @@ -465,6 +466,7 @@ def run(self, fl_ctx: FLContext):
with self.lock:
self.running_jobs[job_id] = ready_job
job_manager.set_status(ready_job.job_id, RunStatus.RUNNING, fl_ctx)
self.log_info(fl_ctx, f"Job: {job_id} started to run, status changed to RUNNING.")
except Exception as e:
if job_id:
if job_id in self.running_jobs:
Expand Down

0 comments on commit e980b60

Please sign in to comment.