The freezerclient.v1.managers.sessions Module¶
-
class
freezerclient.v1.managers.sessions.SessionManager(client, verify=True)[source]¶ Bases:
object-
end_session(session_id, job_id, session_tag, result)[source]¶ Informs the freezer service that the job has ended. Provides information about the job’s result and the session tag
Parameters: - session_id –
- job_id –
- session_tag –
- result –
Returns:
-
headers¶
-
start_session(session_id, job_id, session_tag)[source]¶ Informs the api that the client is starting the session identified by the session_id and request the session_tag to be incremented up to the requested value. The returned session_id could be:
- current_tag + 1 if the session has started
- > current_tag + 1 if the action had already been started by some other node and this node was out of sync
Parameters: - session_id –
- job_id –
- session_tag – the new session_id
Returns: the response obj: { result: string ‘running’ or ‘error’,
‘session_tag’: the new session_tag )
-