sassoftware / saspy

A Python interface module to the SAS System. It works with Linux, Windows, and Mainframe SAS as well as with SAS in Viya.
https://sassoftware.github.io/saspy
Other
373 stars 150 forks source link

SAS session connection verbose mode? #371

Closed abhisuri97 closed 3 years ago

abhisuri97 commented 3 years ago

Is your feature request related to a problem? Please describe. When running saspy.SASsession, it takes a while to connect to sasondemand instances (around 3 minutes from my calculations). During this time, there's no output to indicate something is happening.

Describe the solution you'd like Some indication that the script isn't just hanging.

Describe alternatives you've considered N/A. Tried looking in the documentation for a "verbose" mode for sassession, but wasn't able to find it.

Additional context N/A

tomweber-sas commented 3 years ago

Yes, I've also see this take a while to establish a connection. I'm not aware of a way to provide info while it's waiting for the connection request to finish. Python's single threaded, so it's a synchronous call. The fact that it hasn't come back, or thrown an exception, or returned w/ an error, is pretty much the indication it's still waiting. I know that's not very comforting, but if it failed, it would come right back w/ an error.

abhisuri97 commented 3 years ago

Understood. Closing!