From 84f86b775542eaf80e0ed028e8f575f840c9a8eb Mon Sep 17 00:00:00 2001 From: Peter Andreas Entschev Date: Mon, 4 Jan 2021 14:09:49 -0800 Subject: [PATCH] Fail if scheduler starts with '-' in dask-cuda-worker --- dask_cuda/cli/dask_cuda_worker.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dask_cuda/cli/dask_cuda_worker.py b/dask_cuda/cli/dask_cuda_worker.py index 040e8bb98..4d5ac90b9 100755 --- a/dask_cuda/cli/dask_cuda_worker.py +++ b/dask_cuda/cli/dask_cuda_worker.py @@ -235,6 +235,13 @@ def main( else: security = None + if isinstance(scheduler, str) and scheduler.startswith("-"): + raise ValueError( + "The scheduler address can't start with '-'. Please check " + "your command line arguments, you probably attempted to use " + "unsupported one. Scheduler address: %s" % scheduler + ) + worker = CUDAWorker( scheduler, host,