Skip to content
This repository was archived by the owner on Jul 17, 2024. It is now read-only.

Commit a4545d2

Browse files
committed
Configure Dask so that lab extension uses SwanHTCondorCluster
1 parent 55ddce2 commit a4545d2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

systemuser.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,18 @@ then
248248
mkdir $DASK_TLS_DIR
249249
chown -R $USER:$USER $DASK_TLS_DIR
250250
sudo -u $USER sh /srv/singleuser/create_dask_certs.sh $DASK_TLS_DIR &
251+
252+
# Dask config: lab extension must use SwanHTCondorCluster
253+
DASK_CONFIG_DIR=/etc/dask
254+
mkdir $DASK_CONFIG_DIR
255+
echo "
256+
labextension:
257+
factory:
258+
module: 'swandaskcluster'
259+
class: 'SwanHTCondorCluster'
260+
args: []
261+
kwargs: {}
262+
" > $DASK_CONFIG_DIR/labextension.yaml
251263
fi
252264

253265
# Configurations for extensions (used when deployed outside CERN)

0 commit comments

Comments
 (0)