Skip to content

Reuse sas session#662

Open
JosephDHenry wants to merge 2 commits intosassoftware:mainfrom
JosephDHenry:reuse-sas-session
Open

Reuse sas session#662
JosephDHenry wants to merge 2 commits intosassoftware:mainfrom
JosephDHenry:reuse-sas-session

Conversation

@JosephDHenry
Copy link
Copy Markdown

for things like apro and sas viya workbench, the sas compute server
is running as a process and not a viya service, so starting a session per
kernel is not proper. compute server does not fully support multi session
and end up throwing an error for sessions other than the first one.

setting the new option "reuse_session" will now let the kernel reuse an existing
session if it exists thus making it possible to have a saspy session connect to
a vscode extension session OR multiple notebooks connect to the same session.

for things like apro and sas viya workbench, the sas compute server
is running as a process and not a viya service, so starting a session per
kernel is not proper. compute server does not fully support multi session
and end up throwing an error for sessions other than the first one.

setting the new option "reuse_session" will now let the kernel reuse an existing
session if it exists thus making it possible to have a saspy session connect to
a vscode extension session OR multiple notebooks connect to the same session.
to test you can run something like this:
import saspy

sas = saspy.SASsession(url="http://localhost:8081", serverid="0001", reuse_session=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant