|
11 | 11 | from dlstbx.util.profiler import Profiler |
12 | 12 |
|
13 | 13 |
|
14 | | -class HTCondorWatcher(CommonService): |
| 14 | +class CloudWatcher(CommonService): |
15 | 15 | """ |
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 |
17 | 17 | parties when they do, or don't. |
18 | 18 | """ |
19 | 19 |
|
20 | 20 | # Human readable service name |
21 | | - _service_name = "HTCondorwatcher" |
| 21 | + _service_name = "Cloudwatcher" |
22 | 22 |
|
23 | 23 | # Logger name |
24 | | - _logger_name = "dlstbx.services.htcondorwatcher" |
| 24 | + _logger_name = "dlstbx.services.cloudwatcher" |
25 | 25 |
|
26 | 26 | def initializing(self): |
27 | 27 | """ |
28 | | - Subscribe to the htcondorwatcher queue. Received messages must be |
| 28 | + Subscribe to the cloudwatcher queue. Received messages must be |
29 | 29 | acknowledged. |
30 | 30 | """ |
31 | | - self.log.info("HTCondorwatcher starting") |
| 31 | + self.log.info("Cloudwatcher starting") |
32 | 32 |
|
33 | 33 | self.slurm_api: slurm.SlurmRestApi = ( |
34 | 34 | slurm.SlurmRestApi.from_zocalo_configuration(self.config, cluster="iris") |
35 | 35 | ) |
36 | 36 |
|
37 | 37 | workflows.recipe.wrap_subscribe( |
38 | 38 | self._transport, |
39 | | - "htcondorwatcher", |
| 39 | + "cloudwatcher", |
40 | 40 | self.watch_jobs, |
41 | 41 | acknowledgement=True, |
42 | 42 | log_extender=self.extend_log, |
@@ -167,7 +167,7 @@ def watch_jobs(self, rw, header, message): |
167 | 167 | timeoutlog = self.log.info |
168 | 168 |
|
169 | 169 | 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)", |
171 | 171 | pformat(seen_jobs), |
172 | 172 | runtime, |
173 | 173 | len(seen_jobs), |
|
0 commit comments