X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=executors.py;h=1077667147051e427b5fad045774e32c55d1a142;hb=2e8dd08f5f4f9624facf4d38ea6b276cc8131f56;hp=2d80c3bdd92f80862d7b2be19678c004393f3ff3;hpb=0d63d44ac89aab38fe95f36497adaf95110ab949;p=python_utils.git diff --git a/executors.py b/executors.py index 2d80c3b..1077667 100644 --- a/executors.py +++ b/executors.py @@ -10,7 +10,6 @@ Also defines DefaultExecutors which is a container for references to global executors / worker pools with automatic shutdown semantics.""" from __future__ import annotations - import concurrent.futures as fut import logging import os @@ -705,7 +704,7 @@ class RemoteExecutor(BaseExecutor): if bundle_to_backup is not None: self.last_backup = now logger.info( - '=====> SCHEDULING BACKUP %s (score=%.1f}) <=====', + '=====> SCHEDULING BACKUP %s (score=%.1f) <=====', bundle_to_backup, best_score, ) @@ -1191,7 +1190,7 @@ class DefaultExecutors(object): RemoteWorkerRecord( username='scott', machine='cheetah.house', - weight=30, + weight=24, count=6, ), ) @@ -1211,8 +1210,8 @@ class DefaultExecutors(object): RemoteWorkerRecord( username='scott', machine='wannabe.house', - weight=25, - count=10, + weight=14, + count=8, ), ) if self.ping('puma.cabin'): @@ -1221,7 +1220,7 @@ class DefaultExecutors(object): RemoteWorkerRecord( username='scott', machine='puma.cabin', - weight=30, + weight=24, count=6, ), ) @@ -1231,7 +1230,7 @@ class DefaultExecutors(object): RemoteWorkerRecord( username='scott', machine='backup.house', - weight=8, + weight=9, count=2, ), )