-
Notifications
You must be signed in to change notification settings - Fork 44
Use dask to run tasks #1714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Use dask to run tasks #1714
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Member
Author
|
Note that this is currently slow due to SciTools/iris#4957. Workaround available in #1713. |
Codecov Report
@@ Coverage Diff @@
## main #1714 +/- ##
==========================================
- Coverage 92.78% 92.29% -0.49%
==========================================
Files 236 236
Lines 12455 12573 +118
==========================================
+ Hits 11556 11604 +48
- Misses 899 969 +70
|
Member
Author
|
@fnattino This should now work with the latest commit too. Please let me know if you encounter any problems. |
12 tasks
416b028 to
52af816
Compare
fnattino
reviewed
Nov 9, 2022
9 tasks
4e614f5 to
37bb757
Compare
8 tasks
This was referenced May 19, 2023
Member
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Use dask distributed for data computations.
Works with the development version iris.
Use with ESMValGroup/ESMValTool#3151 to pass the cluster address on to Python diagnostics so they make use of the Dask cluster to run their array computations.
Example usage
esmvaltool run examples/recipe_python.yml --max-parallel-tasks=0 --dask='{"cluster": {"type": "dask_jobqueue.SLURMCluster", "n_workers": 2}}'this requires installing
dask_jobqueue, or locallyesmvaltool run examples/recipe_python.yml --dask='{"client": {}}"Configuration
The settings
max_parallel_taskscan be used to control the how tasks are run:max_parallel_tasks01esmvaltoolPython process on the local machine, compute tasks on the configured Dask clusternullor>1null) on the local machine, compute tasks on the configured Dask clusterThe
dask: clustersetting can be used to configure the Dask cluster, the argumenttypecan be used to specify the Python cluster class (defaults todistributed.LocalCluster), any other arguments will be passed to the class.The
dask: clientsetting can be used to configure thedistributed.Client, any arguments will be passed on.Example
config-user.ymlsettings for running locally using a LocalCluster:Example settings for using an externally managed cluster (e.g. set it up from a Jupyter notebook)
Example settings for running on Levante:
Example for recovering the previous behaviour: specify no
daskitem inconfig-user.yml.TO DO
--resume-fromwith delayed saveMay close #430
Link to documentation:
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: