From 45eb5924cc6f8a90533bf2f1ae5f2669e8310b0f Mon Sep 17 00:00:00 2001 From: Alexander Goscinski Date: Tue, 10 Sep 2024 09:35:22 +0200 Subject: [PATCH] decrease number or daemons --- docs/gallery/howto/autogen/parallel.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/gallery/howto/autogen/parallel.py b/docs/gallery/howto/autogen/parallel.py index e8c44ef8..57305232 100644 --- a/docs/gallery/howto/autogen/parallel.py +++ b/docs/gallery/howto/autogen/parallel.py @@ -205,17 +205,16 @@ def parallel_add(nb_it): ) # %% -# We increase the number of workers by one +# We increase the number of workers by one. One can also do this in the workgraph GUI. client = get_daemon_client() -client.increase_workers(5) +client.increase_workers(1) # %% # Now we submit again and the time have shortens a bit. wg = WorkGraph("wg_daemon_worker_2") wg.add_task(parallel_add, name="parallel_add", nb_it=5) -# wg.submit(wait=True) wg.submit(wait=True) print( f"Time for running with {client.get_numprocesses()['numprocesses']} worker",