Module dask_scheduler
source linkFunctions
▶ def main(host, port, bokeh_port, show, dashboard, bokeh, dashboard_prefix, ...) 21 decorators @click.command(context_settings=dict(ignore_unknown_options=True))
@click.option("--host", type=str, default="", help="URI, IP or hostname of this server")
@click.option("--port", type=int, default=None, help="Serving port")
@click.option( "--interface", type=str, default=None, help="Preferred network interface like 'eth0' or 'ib0'", )
@click.option( "--protocol", type=str, default=None, help="Protocol like tcp, tls, or ucx" )
@click.option( "--tls-ca-file", type=pem_file_option_type, default=None, help="CA cert(s) file for TLS (in PEM format)", )
@click.option( "--tls-cert", type=pem_file_option_type, default=None, help="certificate file for TLS (in PEM format)", )
@click.option( "--tls-key", type=pem_file_option_type, default=None, help="private key file for TLS (in PEM format)", )
@click.option( "--bokeh-port", type=int, default=None, help="Deprecated. See --dashboard-address" )
@click.option( "--dashboard-address", type=str, default=":8787", show_default=True, help="Address on which to listen for diagnostics dashboard", )
@click.option( "--dashboard/--no-dashboard", "dashboard", default=True, required=False, help="Launch the Dashboard [default: --dashboard]", )
@click.option( "--bokeh/--no-bokeh", "bokeh", default=None, required=False, help="Deprecated. See --dashboard/--no-dashboard.", )
@click.option("--show/--no-show", default=False, help="Show web UI [default: --show]")
@click.option( "--dashboard-prefix", type=str, default="", help="Prefix for the dashboard app" )
@click.option( "--use-xheaders", type=bool, default=False, show_default=True, help="User xheaders in dashboard app for ssl termination in header", )
@click.option("--pid-file", type=str, default="", help="File to write the process PID")
@click.option( "--scheduler-file", type=str, default="", help="File to write connection information. " "This may be a good way to share connection information if your " "cluster is on a shared network file system.", )
@click.option( "--preload", type=str, multiple=True, is_eager=True, default="", help="Module that should be loaded by the scheduler process " 'like "foo.bar" or "/path/to/foo.py".', )
@click.argument( "preload_argv", nargs=-1, type=click.UNPROCESSED, callback=validate_preload_argv )
@click.option( "--idle-timeout", default=None, type=str, help="Time of inactivity after which to kill the scheduler", )
@click.version_option()
def main(
host,
port,
bokeh_port,
show,
dashboard,
bokeh,
dashboard_prefix,
use_xheaders,
pid_file,
tls_ca_file,
tls_cert,
tls_key,
dashboard_address,
**kwargs,
)