Skip to content

Commit

Permalink
Fail if scheduler starts with '-' in dask-cuda-worker
Browse files Browse the repository at this point in the history
  • Loading branch information
pentschev committed Jan 4, 2021
1 parent b170b29 commit 84f86b7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dask_cuda/cli/dask_cuda_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 84f86b7

Please sign in to comment.