Skip to content

Commit 1241945

Browse files
committed
Replace obsolete HTCondor references
1 parent 66e5f24 commit 1241945

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

src/dlstbx/services/htcondorstats.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,29 @@
99
from dlstbx.util.iris import get_minio_client
1010

1111

12-
class HTCondorStats(CommonService):
12+
class CloudStats(CommonService):
1313
"""
14-
A service that collects HTCondor and S3 Echo object store utilization
14+
A service that collects Cloud and S3 Echo object store utilization
1515
statistics.
1616
"""
1717

1818
# Human readable service name
19-
_service_name = "HTCondorstats"
19+
_service_name = "Cloudstats"
2020

2121
# Logger name
22-
_logger_name = "dlstbx.services.htcondorstats"
22+
_logger_name = "dlstbx.services.cloudstats"
2323

2424
# STFC S3 Echo credentials
2525
_s3echo_credentials = "/dls_sw/apps/zocalo/secrets/credentials-echo-mx.cfg"
2626

2727
def initializing(self):
2828
"""
29-
Register callback function to collect HTCondor and S3 Echo stats.
29+
Register callback function to collect Cloud and S3 Echo stats.
3030
"""
31-
self.log.info("HTCondorstats starting")
31+
self.log.info("Cloudstats starting")
3232

3333
self.minio_client: minio.Minio = get_minio_client(
34-
HTCondorStats._s3echo_credentials
34+
CloudStats._s3echo_credentials
3535
)
3636

3737
self._register_idle(30, self.update_slurm_statistics)

src/dlstbx/services/htcondorwatcher.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,32 +11,32 @@
1111
from dlstbx.util.profiler import Profiler
1212

1313

14-
class HTCondorWatcher(CommonService):
14+
class CloudWatcher(CommonService):
1515
"""
16-
A service that waits for HTCondor jobs to complete and notifies interested
16+
A service that waits for Cloud jobs to complete and notifies interested
1717
parties when they do, or don't.
1818
"""
1919

2020
# Human readable service name
21-
_service_name = "HTCondorwatcher"
21+
_service_name = "Cloudwatcher"
2222

2323
# Logger name
24-
_logger_name = "dlstbx.services.htcondorwatcher"
24+
_logger_name = "dlstbx.services.cloudwatcher"
2525

2626
def initializing(self):
2727
"""
28-
Subscribe to the htcondorwatcher queue. Received messages must be
28+
Subscribe to the cloudwatcher queue. Received messages must be
2929
acknowledged.
3030
"""
31-
self.log.info("HTCondorwatcher starting")
31+
self.log.info("Cloudwatcher starting")
3232

3333
self.slurm_api: slurm.SlurmRestApi = (
3434
slurm.SlurmRestApi.from_zocalo_configuration(self.config, cluster="iris")
3535
)
3636

3737
workflows.recipe.wrap_subscribe(
3838
self._transport,
39-
"htcondorwatcher",
39+
"cloudwatcher",
4040
self.watch_jobs,
4141
acknowledgement=True,
4242
log_extender=self.extend_log,
@@ -167,7 +167,7 @@ def watch_jobs(self, rw, header, message):
167167
timeoutlog = self.log.info
168168

169169
timeoutlog(
170-
"HTCondorwatcher for jobs %s timed out after %.1f seconds (%d of %d jobs found after %.1f seconds)",
170+
"Cloudwatcher for jobs %s timed out after %.1f seconds (%d of %d jobs found after %.1f seconds)",
171171
pformat(seen_jobs),
172172
runtime,
173173
len(seen_jobs),

0 commit comments

Comments
 (0)