Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/SK-676 | If no compute package is set when starting a session, Fedn should say so #522

Merged
merged 1 commit into from
Feb 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading