Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Multiple sessions towards a domain SMC #72

Open
fgazelot opened this issue Aug 23, 2019 · 1 comment
Open

Multiple sessions towards a domain SMC #72

fgazelot opened this issue Aug 23, 2019 · 1 comment

Comments

@fgazelot
Copy link

Hi David,

We work actually on a script to clean some elements on a multi-domain SMC.

Today, this script works well when we do a loop on all domain to clean elements.
The script does a session login then clean elements and logout. This is for each domain.

However, do you think it's possible to use "multi-thread" to clean elements on all domain at the same time? This implies to have multiple sessions at a time.

The problem is how to have different sessions inside each thread?

I use this version of smc-python:

In [3]:  smc.__version__                                                                                
Out[3]: '0.7.0-b16'

Do you have any suggestion for this issue?

Kind regards,
Fabien

@gabstopper
Copy link
Owner

Hi Fabien,
There is a "switch_domain" function of the session which allows you to have multiple sessions to different domains after logging in to the Shared domain that might be an option.

Have you tried to write a threaded function with your session login?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants