diff options
| author | Scott <[email protected]> | 2022-01-12 09:06:29 -0800 |
|---|---|---|
| committer | Scott <[email protected]> | 2022-01-12 09:06:29 -0800 |
| commit | 55a3172e37855f388b9ba0dfc91641a6c9ad1376 (patch) | |
| tree | 01285a4abb59103ec437375d1133f9d00caa1497 /executors.py | |
| parent | ffc4022c1ea2c2a5892150ff55e6c9a9ddbb8756 (diff) | |
Scale back warnings.warn and add stacklevels= where appropriate.
Diffstat (limited to 'executors.py')
| -rw-r--r-- | executors.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/executors.py b/executors.py index 336f2c7..6ccd7b6 100644 --- a/executors.py +++ b/executors.py @@ -493,7 +493,6 @@ class WeightedRandomRemoteWorkerSelectionPolicy(RemoteWorkerSelectionPolicy): return worker msg = 'Unexpectedly could not find a worker, retrying...' logger.warning(msg) - warnings.warn(msg) return None @@ -530,7 +529,6 @@ class RoundRobinRemoteWorkerSelectionPolicy(RemoteWorkerSelectionPolicy): if x == self.index: msg = 'Unexpectedly could not find a worker, retrying...' logger.warning(msg) - warnings.warn(msg) return None @@ -777,7 +775,6 @@ class RemoteExecutor(BaseExecutor): msg += 'We\'re a backup and this may be caused by the original (or some ' msg += 'other backup) already finishing this work. Ignoring this.' logger.warning(msg) - warnings.warn(msg) return None # Kick off the work. Note that if this fails we let @@ -851,7 +848,6 @@ class RemoteExecutor(BaseExecutor): if p is not None: msg = f"{bundle}: Failed to wrap up \"done\" bundle, re-waiting on active ssh." logger.warning(msg) - warnings.warn(msg) return self.wait_for_process(p, bundle, depth + 1) else: self.status.record_release_worker( |
