Skip to content

Commit

Permalink
Allow setting the path for temporary files when using the default
Browse files Browse the repository at this point in the history
LocalCluster
  • Loading branch information
hagau committed Oct 29, 2024
1 parent 37caf4b commit 29f11db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion run_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,10 @@ def setup_dask(options):
else:
dashboard_address = f'localhost:{options.dashboard_port}'
logi(f'using local cluster with dashboard at {dashboard_address}')
client = Client(dashboard_address=dashboard_address, n_workers=options.worker)
client = Client(dashboard_address=dashboard_address
, n_workers=options.worker
, local_directory = options.tmpdir
)
client.register_worker_plugin(plugin)
return client

Expand Down

0 comments on commit 29f11db

Please sign in to comment.