Make Dask configurable in our configuration #2616
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR makes Dask configurable in our configuration. These are the default settings:
The entries given under
clusters
can be selected via therun
option; this also works in the command line, e.g.,esmvaltool run --dask='{"run": "local"}' recipe_example.yml
I chose not to add a predefined
SLURMCluster
setting since this needs to be customized by the user anyway (account and scratch directory).This PR also deprecates the usage of the file
~/.esmvaltool/dask.yml
(see below).Closes #2040
Closes #2369
Link to documentation: https://esmvaltool--2616.org.readthedocs.build/projects/ESMValCore/en/2616/quickstart/configure.html#dask-configuration
Deprecation (since v2.12.0, will be removed in v2.14.0)
Usage of Dask configuration file
~/.esmvaltool/dask.yml
: please use the new configuration optiondask
instead, see details above. If the deprecated file is present, it will be used but a warning will be printed. In this case, alldask
configuration options are ignored. To force using the new Dask configuration option and ignore~/.esmvaltool/dask.yml
already now, you can set the environment variableESMVALTOOL_USE_NEW_DASK_CONFIG
to any truthy value.Before you get started
Checklist
It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.
To help with the number pull requests: