More cleanup.
[python_utils.git] / executors.py
index 2d80c3bdd92f80862d7b2be19678c004393f3ff3..1077667147051e427b5fad045774e32c55d1a142 100644 (file)
@@ -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,
                     ),
                 )