How to use the dockerspawner.DockerSpawner.start_timeout.help function in dockerspawner

To help you get started, we’ve selected a few dockerspawner examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jupyter-attic / jupyterhub-carina / jupyterhub_carina / CarinaSpawner.py View on Github external
container_name = Unicode(
        'jupyter',
        help="The name of the Jupyter server container running on the user's cluster.",
        config=True)

    cluster_polling_interval = Integer(
        30,
        help="The number of seconds between polling for a user's cluster to become active.",
        config=True
    )

    # Override the default timeout to allow extra time for creating the cluster and pulling the
    # server image
    start_timeout = Integer(
        300,
        help=DockerSpawner.start_timeout.help,
        config=True)

    # Override the docker run parameters
    extra_host_config = Dict(
        {
            'volumes_from': ['swarm-data'],  # --volumes-from swarm-data
            'port_bindings': {8888: None},  # -p 8888:8888
            'restart_policy': {  # --restart always
                'MaximumRetryCount': 0,
                'Name': 'always'
            },
        },
        help=DockerSpawner.extra_host_config.help,
        config=True)

    def __init__(self, **kwargs):