Skip to content

Commit ff7411d

Browse files
committed
Fix ruff
1 parent eadb475 commit ff7411d

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

htcdaskgateway/cluster.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@
1515

1616

1717
class HTCGatewayCluster(GatewayCluster):
18-
def __init__(self, container_image=None,
19-
memory: str = "32GB",
20-
cpus: int = 4,
21-
**kwargs):
18+
def __init__(
19+
self, container_image=None, memory: str = "32GB", cpus: int = 4, **kwargs
20+
):
2221
self.scheduler_proxy_ip = kwargs.pop("", "dask.software-dev.ncsa.illinois.edu")
2322
self.batchWorkerJobs = []
2423
self.cluster_options = kwargs.get("cluster_options")
@@ -100,7 +99,9 @@ def scale_batch_workers(self, n):
10099
+ """ htcdask-worker_$(Cluster)_$(Process)
101100
output = condor/htcdask-worker$(Cluster)_$(Process).out
102101
error = condor/htcdask-worker$(Cluster)_$(Process).err
103-
log = condor/htcdask-worker$(Cluster)_$(Process).log"""+resources+"""
102+
log = condor/htcdask-worker$(Cluster)_$(Process).log"""
103+
+ resources
104+
+ """
104105
should_transfer_files = yes
105106
transfer_input_files = ./dask-credentials, ./dask-worker-space , ./condor
106107
when_to_transfer_output = ON_EXIT_OR_EVICT
@@ -129,8 +130,8 @@ def scale_batch_workers(self, n):
129130
--env DASK_GATEWAY_CLUSTER_NAME=$1 \
130131
--env DASK_GATEWAY_WORKER_NAME=$2 \
131132
--env DASK_GATEWAY_API_URL="https://dask.software-dev.ncsa.illinois.edu/api" """
132-
+ self.container_image +
133-
" dask worker --name $2 --tls-ca-file dask-credentials/dask.crt --tls-cert dask-credentials/dask.crt --tls-key dask-credentials/dask.pem --worker-port 10000:10070 --no-nanny --scheduler-sni daskgateway-"
133+
+ self.container_image
134+
+ " dask worker --name $2 --tls-ca-file dask-credentials/dask.crt --tls-cert dask-credentials/dask.crt --tls-key dask-credentials/dask.pem --worker-port 10000:10070 --no-nanny --scheduler-sni daskgateway-"
134135
+ cluster_name
135136
+ """ --nthreads 1 tls://"""
136137
+ self.scheduler_proxy_ip

0 commit comments

Comments
 (0)