Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/dask/distributed into exc…
Browse files Browse the repository at this point in the history
…eption_handling_failed_dependency
  • Loading branch information
jrbourbeau committed Dec 22, 2020
2 parents a045531 + 976e02e commit 121ce5e
Show file tree
Hide file tree
Showing 10 changed files with 207 additions and 60 deletions.
3 changes: 1 addition & 2 deletions distributed/cli/dask_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@ def main(

if "DASK_INTERNAL_INHERIT_CONFIG" in os.environ:
config = deserialize_for_cli(os.environ["DASK_INTERNAL_INHERIT_CONFIG"])
# Update the global config given priority to the existing global config
dask.config.update(dask.config.global_config, config, priority="old")
dask.config.update(dask.config.global_config, config)

if not host and (tls_ca_file or tls_cert or tls_key):
host = "tls://"
Expand Down
8 changes: 8 additions & 0 deletions distributed/cli/dask_spec.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import asyncio
import click
import json
import os
import sys
import yaml

import dask.config
from distributed.deploy.spec import run_spec
from distributed.utils import deserialize_for_cli


@click.command(context_settings=dict(ignore_unknown_options=True))
Expand All @@ -13,6 +16,11 @@
@click.option("--spec-file", type=str, default=None, help="")
@click.version_option()
def main(args, spec: str, spec_file: str):

if "DASK_INTERNAL_INHERIT_CONFIG" in os.environ:
config = deserialize_for_cli(os.environ["DASK_INTERNAL_INHERIT_CONFIG"])
dask.config.update(dask.config.global_config, config)

if spec and spec_file or not spec and not spec_file:
print("Must specify exactly one of --spec and --spec-file")
sys.exit(1)
Expand Down
3 changes: 1 addition & 2 deletions distributed/cli/dask_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,7 @@ def del_pid_file():

if "DASK_INTERNAL_INHERIT_CONFIG" in os.environ:
config = deserialize_for_cli(os.environ["DASK_INTERNAL_INHERIT_CONFIG"])
# Update the global config given priority to the existing global config
dask.config.update(dask.config.global_config, config, priority="old")
dask.config.update(dask.config.global_config, config)

nannies = [
t(
Expand Down
Loading

0 comments on commit 121ce5e

Please sign in to comment.