Repository navigation
Extend preload documentation - #6077
Conversation
Include notes on configuration, types of inputs, and nannies Accompanies dask/distributed#3678
| - /path/to/myfile.py # or a filename | ||
| - my_module # or a module name | ||
| preload_argv: | ||
| - [] # Pass optional keywords |
There was a problem hiding this comment.
I assume these are per preload script (so only myfile.py has args?).
It looks like this was an existing pattern, but I find it a bit hard to read (need to mentally align the script with the args). The following might have been cleaner:
distributed:
scheduler:
preloads:
- script: "import os; os.environ['A'] = 'b'"
- script: /path/to/myfile.py
argv: ["--option", "value"]
- script: my_moduleThere was a problem hiding this comment.
I entirely agree. I probably won't make this change though. A few people asked me about preloads in one day, so I figured it would make sense to document them a bit better. I'm entirely in favor of changing how we spell these out in configuration, but I don't think that that should block this PR.
There was a problem hiding this comment.
Yeah, if it's an existing pattern then this is a separate issue. I wasn't sure if this config just went in or has existed for a while.
|
LGTM, merging. |
Include notes on configuration, types of inputs, and nannies
Accompanies dask/distributed#3678
black dask/flake8 dask