Skip to content

Commit

Permalink
Merge branch 'develop' into feat/rclone-storage-commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Panaetius authored Nov 13, 2023
2 parents 3675827 + 4726f66 commit 322277e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]
Copyright 2019-2023 - Swiss Data Science Center

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
10 changes: 8 additions & 2 deletions renku/core/session/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,16 @@ def stop_sessions(session_provider: ISessionProvider) -> SessionStopStatus:
return session_provider.session_stop(
project_name=project_name, session_name=session_name, stop_all=stop_all
)
except errors.RenkulabSessionGetUrlError:
except errors.RenkulabSessionGetUrlError as e:
if provider:
raise
return SessionStopStatus.FAILED
communication.warn(f"Didn't stop any renkulab sessions: {e}")
return SessionStopStatus.SUCCESSFUL
except errors.DockerError as e:
if provider:
raise
communication.warn(f"Didn't stop any docker sessions: {e}")
return SessionStopStatus.SUCCESSFUL

session_detail = "all sessions" if stop_all else f"session {session_name}" if session_name else "session"
project_name = get_renku_project_name()
Expand Down

0 comments on commit 322277e

Please sign in to comment.