Skip to content
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

Circumvent dask heartbeat error #127

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion templates_notebooks/template_2dmesh.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@
" from dask.distributed import Client\n",
" # from dask.diagnostics import ProgressBar\n",
" import dask\n",
" from dask import config as cfg\n",
" cfg.set({'distributed.scheduler.worker-ttl': None})\n",
" print(' --> memory_limit: {:3.3f} GB'.format(parallel_tmem/(parallel_nprc)))\n",
" ## dask.config.config.get('distributed').get('dashboard').update({'link':'{JUPYTERHUB_SERVICE_PREFIX}/proxy/{port}/status'})\n",
" client = Client(n_workers=parallel_nprc, threads_per_worker=1, memory_limit='{:3.3f} GB'.format(parallel_tmem/parallel_nprc))\n",
Expand Down Expand Up @@ -291,7 +293,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.19"
"version": "3.9.19"
}
},
"nbformat": 4,
Expand Down
4 changes: 3 additions & 1 deletion templates_notebooks/template_hmesh.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@
"# start parallel dask client\n",
"if do_parallel and not client_runs:\n",
" from dask.distributed import Client\n",
" from dask import config as cfg\n",
" cfg.set({'distributed.scheduler.worker-ttl': None})\n",
" ##import dask\n",
" ## dask.config.config.get('distributed').get('dashboard').update({'link':'{JUPYTERHUB_SERVICE_PREFIX}/proxy/{port}/status'})\n",
" print(' --> memory_limit: {:3.3f} GB'.format(parallel_tmem/(parallel_nprc)))\n",
Expand Down Expand Up @@ -359,7 +361,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.19"
"version": "3.9.19"
},
"latex_envs": {
"LaTeX_envs_menu_present": true,
Expand Down
2 changes: 2 additions & 0 deletions templates_notebooks/template_hovm.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@
"# start parallel dask client\n",
"if do_parallel and not client_runs:\n",
" from dask.distributed import Client\n",
" from dask import config as cfg\n",
" cfg.set({'distributed.scheduler.worker-ttl': None})\n",
" ##import dask\n",
" ## dask.config.config.get('distributed').get('dashboard').update({'link':'{JUPYTERHUB_SERVICE_PREFIX}/proxy/{port}/status'})\n",
" print(' --> memory_limit: {:3.3f} GB'.format(parallel_tmem/(parallel_nprc)))\n",
Expand Down
2 changes: 2 additions & 0 deletions templates_notebooks/template_hovm_clim.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@
"# start parallel dask client\n",
"if do_parallel and not client_runs:\n",
" from dask.distributed import Client\n",
" from dask import config as cfg\n",
" cfg.set({'distributed.scheduler.worker-ttl': None})\n",
" ##import dask\n",
" ## dask.config.config.get('distributed').get('dashboard').update({'link':'{JUPYTERHUB_SERVICE_PREFIX}/proxy/{port}/status'})\n",
" client = Client(n_workers=parallel_nprc, threads_per_worker=1, memory_limit='{:3.3f} GB'.format(parallel_tmem/parallel_nprc))\n",
Expand Down
2 changes: 2 additions & 0 deletions templates_notebooks/template_hquiver.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@
"# start parallel dask client\n",
"if do_parallel and not client_runs:\n",
" from dask.distributed import Client\n",
" from dask import config as cfg\n",
" cfg.set({'distributed.scheduler.worker-ttl': None})\n",
" ##import dask\n",
" ## dask.config.config.get('distributed').get('dashboard').update({'link':'{JUPYTERHUB_SERVICE_PREFIX}/proxy/{port}/status'})\n",
" print(' --> memory_limit: {:3.3f} GB'.format(parallel_tmem/(parallel_nprc)))\n",
Expand Down
6 changes: 2 additions & 4 deletions templates_notebooks/template_hslice.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,8 @@
"# start parallel dask client\n",
"if do_parallel and not client_runs:\n",
" from dask.distributed import Client\n",
" \n",
"# # disable dask worker heartbeat --> prevent error ?\n",
"# from dask import config as cfg\n",
"# cfg.set({'distributed.scheduler.worker-ttl': None})\n",
" from dask import config as cfg\n",
" cfg.set({'distributed.scheduler.worker-ttl': None})\n",
" \n",
" ##import dask\n",
" ## dask.config.config.get('distributed').get('dashboard').update({'link':'{JUPYTERHUB_SERVICE_PREFIX}/proxy/{port}/status'})\n",
Expand Down
2 changes: 2 additions & 0 deletions templates_notebooks/template_hslice_clim.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@
"# start parallel dask client\n",
"if do_parallel and not client_runs:\n",
" from dask.distributed import Client\n",
" from dask import config as cfg\n",
" cfg.set({'distributed.scheduler.worker-ttl': None})\n",
" ##import dask\n",
" ## dask.config.config.get('distributed').get('dashboard').update({'link':'{JUPYTERHUB_SERVICE_PREFIX}/proxy/{port}/status'})\n",
" client = Client(n_workers=parallel_nprc, threads_per_worker=1, memory_limit='{:3.3f} GB'.format(parallel_tmem/parallel_nprc))\n",
Expand Down
2 changes: 2 additions & 0 deletions templates_notebooks/template_hslice_isotdep.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@
"# start parallel dask client\n",
"if do_parallel and not client_runs:\n",
" from dask.distributed import Client\n",
" from dask import config as cfg\n",
" cfg.set({'distributed.scheduler.worker-ttl': None})\n",
" ##import dask\n",
" ## dask.config.config.get('distributed').get('dashboard').update({'link':'{JUPYTERHUB_SERVICE_PREFIX}/proxy/{port}/status'})\n",
" print(' --> memory_limit: {:3.3f} GB'.format(parallel_tmem/(parallel_nprc)))\n",
Expand Down
2 changes: 2 additions & 0 deletions templates_notebooks/template_transect.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@
"# start parallel dask client\n",
"if do_parallel and not client_runs:\n",
" from dask.distributed import Client\n",
" from dask import config as cfg\n",
" cfg.set({'distributed.scheduler.worker-ttl': None})\n",
" ##import dask\n",
" ## dask.config.config.get('distributed').get('dashboard').update({'link':'{JUPYTERHUB_SERVICE_PREFIX}/proxy/{port}/status'})\n",
" client = Client(n_workers=parallel_nprc, threads_per_worker=1, memory_limit='{:3.3f} GB'.format(parallel_tmem/parallel_nprc))\n",
Expand Down
2 changes: 2 additions & 0 deletions templates_notebooks/template_transect_clim.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@
"# start parallel dask client\n",
"if do_parallel and not client_runs:\n",
" from dask.distributed import Client\n",
" from dask import config as cfg\n",
" cfg.set({'distributed.scheduler.worker-ttl': None})\n",
" ##import dask\n",
" ## dask.config.config.get('distributed').get('dashboard').update({'link':'{JUPYTERHUB_SERVICE_PREFIX}/proxy/{port}/status'})\n",
" client = Client(n_workers=parallel_nprc, threads_per_worker=1, memory_limit='{:3.3f} GB'.format(parallel_tmem/parallel_nprc))\n",
Expand Down
2 changes: 2 additions & 0 deletions templates_notebooks/template_transect_transp.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@
"# start parallel dask client\n",
"if do_parallel and not client_runs:\n",
" from dask.distributed import Client\n",
" from dask import config as cfg\n",
" cfg.set({'distributed.scheduler.worker-ttl': None})\n",
" ##import dask\n",
" ## dask.config.config.get('distributed').get('dashboard').update({'link':'{JUPYTERHUB_SERVICE_PREFIX}/proxy/{port}/status'})\n",
" client = Client(n_workers=parallel_nprc, threads_per_worker=1, memory_limit='{:3.3f} GB'.format(parallel_tmem/parallel_nprc))\n",
Expand Down
12 changes: 11 additions & 1 deletion templates_notebooks/template_transect_transp_t.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,19 @@
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/work/ab0246/a270092/software/tripyview/tripyview/sub_data.py:8: UserWarning: The seawater library is deprecated! Please use gsw instead.\n",
" import seawater as sw\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"/albedo/home/pscholz/tripyview\n"
"/work/ab0246/a270092/software/tripyview\n"
]
}
],
Expand Down Expand Up @@ -194,6 +202,8 @@
"# start parallel dask client\n",
"if do_parallel and not client_runs:\n",
" from dask.distributed import Client\n",
" from dask import config as cfg\n",
" cfg.set({'distributed.scheduler.worker-ttl': None})\n",
" ##import dask\n",
" ## dask.config.config.get('distributed').get('dashboard').update({'link':'{JUPYTERHUB_SERVICE_PREFIX}/proxy/{port}/status'})\n",
" client = Client(n_workers=parallel_nprc, threads_per_worker=1, memory_limit='{:3.3f} GB'.format(parallel_tmem/parallel_nprc))\n",
Expand Down
2 changes: 2 additions & 0 deletions templates_notebooks/template_transect_zmean.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@
"# start parallel dask client\n",
"if do_parallel and not client_runs:\n",
" from dask.distributed import Client\n",
" from dask import config as cfg\n",
" cfg.set({'distributed.scheduler.worker-ttl': None})\n",
" ##import dask\n",
" ## dask.config.config.get('distributed').get('dashboard').update({'link':'{JUPYTERHUB_SERVICE_PREFIX}/proxy/{port}/status'})\n",
" client = Client(n_workers=parallel_nprc, threads_per_worker=1, memory_limit='{:3.3f} GB'.format(parallel_tmem/parallel_nprc))\n",
Expand Down
2 changes: 2 additions & 0 deletions templates_notebooks/template_transect_zmean_clim.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@
"# start parallel dask client\n",
"if do_parallel and not client_runs:\n",
" from dask.distributed import Client\n",
" from dask import config as cfg\n",
" cfg.set({'distributed.scheduler.worker-ttl': None})\n",
" ##import dask\n",
" ## dask.config.config.get('distributed').get('dashboard').update({'link':'{JUPYTERHUB_SERVICE_PREFIX}/proxy/{port}/status'})\n",
" print(' --> memory_limit: {:3.3f} GB'.format(parallel_tmem/(parallel_nprc)))\n",
Expand Down
2 changes: 2 additions & 0 deletions templates_notebooks/template_transp_dmoc.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@
"# start parallel dask client\n",
"if do_parallel and not client_runs:\n",
" from dask.distributed import Client\n",
" from dask import config as cfg\n",
" cfg.set({'distributed.scheduler.worker-ttl': None})\n",
" ##import dask\n",
" ## dask.config.config.get('distributed').get('dashboard').update({'link':'{JUPYTERHUB_SERVICE_PREFIX}/proxy/{port}/status'})\n",
" print(' --> memory_limit: {:3.3f} GB'.format(parallel_tmem/(parallel_nprc)))\n",
Expand Down
2 changes: 2 additions & 0 deletions templates_notebooks/template_transp_dmoc_srfcbflx.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@
"# start parallel dask client\n",
"if do_parallel and not client_runs:\n",
" from dask.distributed import Client\n",
" from dask import config as cfg\n",
" cfg.set({'distributed.scheduler.worker-ttl': None})\n",
" ##import dask\n",
" ## dask.config.config.get('distributed').get('dashboard').update({'link':'{JUPYTERHUB_SERVICE_PREFIX}/proxy/{port}/status'})\n",
" client = Client(n_workers=parallel_nprc, threads_per_worker=1, memory_limit='{:3.3f} GB'.format(parallel_tmem/parallel_nprc))\n",
Expand Down
2 changes: 2 additions & 0 deletions templates_notebooks/template_transp_dmoc_t.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@
"# start parallel dask client\n",
"if do_parallel and not client_runs:\n",
" from dask.distributed import Client\n",
" from dask import config as cfg\n",
" cfg.set({'distributed.scheduler.worker-ttl': None})\n",
" ##import dask\n",
" ## dask.config.config.get('distributed').get('dashboard').update({'link':'{JUPYTERHUB_SERVICE_PREFIX}/proxy/{port}/status'})\n",
" print(' --> memory_limit: {:3.3f} GB'.format(parallel_tmem/(parallel_nprc)))\n",
Expand Down
2 changes: 2 additions & 0 deletions templates_notebooks/template_transp_dmoc_wdiap.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@
"# start parallel dask client\n",
"if do_parallel and not client_runs:\n",
" from dask.distributed import Client\n",
" from dask import config as cfg\n",
" cfg.set({'distributed.scheduler.worker-ttl': None})\n",
" ##import dask\n",
" ## dask.config.config.get('distributed').get('dashboard').update({'link':'{JUPYTERHUB_SERVICE_PREFIX}/proxy/{port}/status'})\n",
" client = Client(n_workers=parallel_nprc, threads_per_worker=1, memory_limit='{:3.3f} GB'.format(parallel_tmem/parallel_nprc))\n",
Expand Down
2 changes: 2 additions & 0 deletions templates_notebooks/template_transp_ghflx.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@
"# start parallel dask client\n",
"if do_parallel and not client_runs:\n",
" from dask.distributed import Client\n",
" from dask import config as cfg\n",
" cfg.set({'distributed.scheduler.worker-ttl': None})\n",
" ##import dask\n",
" ## dask.config.config.get('distributed').get('dashboard').update({'link':'{JUPYTERHUB_SERVICE_PREFIX}/proxy/{port}/status'})\n",
" print(' --> memory_limit: {:3.3f} GB'.format(parallel_tmem/(parallel_nprc)))\n",
Expand Down
2 changes: 2 additions & 0 deletions templates_notebooks/template_transp_hbstreamf.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@
"source": [
"if do_parallel:\n",
" from dask.distributed import Client\n",
" from dask import config as cfg\n",
" cfg.set({'distributed.scheduler.worker-ttl': None})\n",
" # from dask.diagnostics import ProgressBar\n",
" import dask\n",
" print(' --> memory_limit: {:3.3f} GB'.format(parallel_tmem/(parallel_nprc)))\n",
Expand Down
4 changes: 3 additions & 1 deletion templates_notebooks/template_transp_mhflx.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@
"# start parallel dask client\n",
"if do_parallel and not client_runs:\n",
" from dask.distributed import Client\n",
" from dask import config as cfg\n",
" cfg.set({'distributed.scheduler.worker-ttl': None})\n",
" ##import dask\n",
" ## dask.config.config.get('distributed').get('dashboard').update({'link':'{JUPYTERHUB_SERVICE_PREFIX}/proxy/{port}/status'})\n",
" print(' --> memory_limit: {:3.3f} GB'.format(parallel_tmem/(parallel_nprc)))\n",
Expand Down Expand Up @@ -614,7 +616,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.19"
"version": "3.9.19"
},
"latex_envs": {
"LaTeX_envs_menu_present": true,
Expand Down
4 changes: 3 additions & 1 deletion templates_notebooks/template_transp_zhflx.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@
"# start parallel dask client\n",
"if do_parallel and not client_runs:\n",
" from dask.distributed import Client\n",
" from dask import config as cfg\n",
" cfg.set({'distributed.scheduler.worker-ttl': None})\n",
" ##import dask\n",
" ## dask.config.config.get('distributed').get('dashboard').update({'link':'{JUPYTERHUB_SERVICE_PREFIX}/proxy/{port}/status'})\n",
" print(' --> memory_limit: {:3.3f} GB'.format(parallel_tmem/(parallel_nprc)))\n",
Expand Down Expand Up @@ -646,7 +648,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.19"
"version": "3.9.19"
},
"latex_envs": {
"LaTeX_envs_menu_present": true,
Expand Down
2 changes: 2 additions & 0 deletions templates_notebooks/template_transp_zmoc.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@
"# start parallel dask client\n",
"if do_parallel and not client_runs:\n",
" from dask.distributed import Client\n",
" from dask import config as cfg\n",
" cfg.set({'distributed.scheduler.worker-ttl': None})\n",
" ##import dask\n",
" ## dask.config.config.get('distributed').get('dashboard').update({'link':'{JUPYTERHUB_SERVICE_PREFIX}/proxy/{port}/status'})\n",
" print(' --> memory_limit: {:3.3f} GB'.format(parallel_tmem/(parallel_nprc)))\n",
Expand Down
2 changes: 2 additions & 0 deletions templates_notebooks/template_transp_zmoc_t.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@
"# start parallel dask client\n",
"if do_parallel and not client_runs:\n",
" from dask.distributed import Client\n",
" from dask import config as cfg\n",
" cfg.set({'distributed.scheduler.worker-ttl': None})\n",
" ##import dask\n",
" ## dask.config.config.get('distributed').get('dashboard').update({'link':'{JUPYTERHUB_SERVICE_PREFIX}/proxy/{port}/status'})\n",
" print(' --> memory_limit: {:3.3f} GB'.format(parallel_tmem/(parallel_nprc)))\n",
Expand Down
2 changes: 2 additions & 0 deletions templates_notebooks/template_var_t.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@
"# start parallel dask client\n",
"if do_parallel and not client_runs:\n",
" from dask.distributed import Client\n",
" from dask import config as cfg\n",
" cfg.set({'distributed.scheduler.worker-ttl': None})\n",
" ##import dask\n",
" ## dask.config.config.get('distributed').get('dashboard').update({'link':'{JUPYTERHUB_SERVICE_PREFIX}/proxy/{port}/status'})\n",
" print(' --> memory_limit: {:3.3f} GB'.format(parallel_tmem/(parallel_nprc)))\n",
Expand Down
2 changes: 2 additions & 0 deletions templates_notebooks/template_vprofile.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@
"# start parallel dask client\n",
"if do_parallel and not client_runs:\n",
" from dask.distributed import Client\n",
" from dask import config as cfg\n",
" cfg.set({'distributed.scheduler.worker-ttl': None})\n",
" ##import dask\n",
" ## dask.config.config.get('distributed').get('dashboard').update({'link':'{JUPYTERHUB_SERVICE_PREFIX}/proxy/{port}/status'})\n",
" print(' --> memory_limit: {:3.3f} GB'.format(parallel_tmem/(parallel_nprc)))\n",
Expand Down
2 changes: 2 additions & 0 deletions templates_notebooks/template_vprofile_clim.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@
"# start parallel dask client\n",
"if do_parallel and not client_runs:\n",
" from dask.distributed import Client\n",
" from dask import config as cfg\n",
" cfg.set({'distributed.scheduler.worker-ttl': None})\n",
" ##import dask\n",
" ## dask.config.config.get('distributed').get('dashboard').update({'link':'{JUPYTERHUB_SERVICE_PREFIX}/proxy/{port}/status'})\n",
" print(' --> memory_limit: {:3.3f} GB'.format(parallel_tmem/(parallel_nprc)))\n",
Expand Down