You're reading the documentation of the v0.13. For the latest released version, please have a look at v1.0.
Scaleway Session
- class perceval.providers.scaleway.Session(platform_name, project_id, token, max_idle_duration_s=1200, max_duration_s=3600, deduplication_id=None, url=None, proxies=None, provider_name=None)
Scaleway session used to keep a connexion opened with Scaleway Cloud for the duration of a Python scope.
- Parameters:
platform_name (
str
) – platform on which circuits will be executedproject_id (
str
) – UUID of the Scaleway Project the session is attached totoken (
str
) – authentication token required to access the Scaleway APIdeduplication_id (
Optional
[str
]) – optional value, name mapping to a unique running session, allowing to share an alive session among multiple usersmax_idle_duration_s (
int
) – optional value, duration in seconds that can elapsed without activity before the session terminatesmax_duration_s (
int
) – optional value, duration in seconds for a session before it automatically terminatesurl (
Optional
[str
]) – optional value, endpoint URL of the APIproxies (
Optional
[dict
[str
,str
]]) – optional value, dictionary mapping protocol to the URL of the proxy
- build_remote_processor()
Build a RemoteProcessor object given the session data
- Return type:
RemoteProcessor
- start()
Start session
- Return type:
None
- stop()
Stop session
- Return type:
None