Skip to content

Commit

Permalink
Start session - compute package not set error added
Browse files Browse the repository at this point in the history
  • Loading branch information
niklastheman committed Feb 6, 2024
1 parent 098ad7c commit 62fa14e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions fedn/fedn/network/api/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -1055,6 +1055,15 @@ def start_session(
{"success": False, "message": "A session is already running."}
)

# Check if compute package is set
if not self.statestore.get_compute_package():
return jsonify(
{
"success": False,
"message": "No compute package set. Set compute package before starting session.",
}
)

# Check that initial (seed) model is set
if not self.statestore.get_initial_model():
return jsonify(
Expand Down

0 comments on commit 62fa14e

Please sign in to comment.