Skip to content

Commit ec23dad

Browse files
authored
Merge pull request #845 from harrysorensennrel/gh-pages
Fix for dask slurmcluster example
2 parents b483e73 + e4189c2 commit ec23dad

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • docs/Documentation/Development/Languages/Python

docs/Documentation/Development/Languages/Python/dask.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ The [`dask-jobqueue`](https://jobqueue.dask.org/en/latest/index.html#) library m
100100

101101
For the following example, first make sure that both `dask` and `dask-jobqueue` have been installed. Create a file named `dask_slurm_example.py` with the following contents, and replace `<project>` with your project allocation.
102102

103-
Assuming you are on Kestrel, this example will request two jobs from the `shared` partition.
103+
Assuming you are on Kestrel, this example will request two jobs from the `shared` partition. Note the interface is defined so the workers can communicate with the SLURMCluster running on the login node.
104104

105105
??? example "`dask_slurm_example.py`"
106106

@@ -116,6 +116,7 @@ Assuming you are on Kestrel, this example will request two jobs from the `shared
116116
account='<allocation_handle>',
117117
walltime='00:30:00',
118118
processes=17,
119+
interface='hsn0',
119120
queue='shared'
120121
)
121122

0 commit comments

Comments
 (0)