Skip to content

get_running_sessions()

Get information about all sessions that are currently running.

get_running_sessions(...)

Description

This function retrieves information about all sessions that you started that are currently running

Required Parameters

cluster_name (str)

Name of cluster to filter sessions by. Will only retrieve sessions that were started on this cluster.

Returns (dict)

Dictionary of session ID mapping to session configuration and information.

{
    "2021-06-10-2240237175e6921d0c69f8a93aaa49ffd30287": {
        "session_name":"mnist_classify",
        "instance_type": "c5.2xlarge",
        "num_workers": 8,
        "cluster_instance_id": "mlexperimentation_2021-06-08-02:25:37_942673c86e9c3e18",
        "cluster_name": "mlexperimentation",
        "created": "2021-07-27-14:36:07",
        "ended": "",
        "status": "running"
    }
}

Example Usage

get_running_sessions("mlexperimentation")