diff options
| author | Scott <[email protected]> | 2022-01-31 09:58:30 -0800 |
|---|---|---|
| committer | Scott <[email protected]> | 2022-01-31 09:58:30 -0800 |
| commit | a2854e489282ad19ab1a96105dd31dc57041fc68 (patch) | |
| tree | 40c82ed1ad097b9a8e7df6f7cd218bc1603ae081 /executors.py | |
| parent | f41c2bbae228ea2305e7530148c4d2dca5131200 (diff) | |
Tweak histograms in executors to include seconds label.
Diffstat (limited to 'executors.py')
| -rw-r--r-- | executors.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/executors.py b/executors.py index 28507b0..633b11b 100644 --- a/executors.py +++ b/executors.py @@ -158,7 +158,7 @@ class ThreadExecutor(BaseExecutor): def shutdown(self, wait=True) -> None: if not self.already_shutdown: logger.debug(f'Shutting down threadpool executor {self.title}') - print(self.histogram.__repr__(label_formatter='%d')) + print(self.histogram.__repr__(label_formatter='%ds')) self._thread_pool_executor.shutdown(wait) self.already_shutdown = True @@ -201,7 +201,7 @@ class ProcessExecutor(BaseExecutor): if not self.already_shutdown: logger.debug(f'Shutting down processpool executor {self.title}') self._process_executor.shutdown(wait) - print(self.histogram.__repr__(label_formatter='%d')) + print(self.histogram.__repr__(label_formatter='%ds')) self.already_shutdown = True def __getstate__(self): @@ -1113,7 +1113,7 @@ class RemoteExecutor(BaseExecutor): self.heartbeat_stop_event.set() self.heartbeat_thread.join() self._helper_executor.shutdown(wait) - print(self.histogram.__repr__(label_formatter='%d')) + print(self.histogram.__repr__(label_formatter='%ds')) self.already_shutdown = True |
