Przeglądaj źródła

Fixes autoscale info in banner. Closes #859

Ask Solem 13 lat temu
rodzic
commit
c23b45ee22
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      celery/apps/worker.py

+ 2 - 1
celery/apps/worker.py

@@ -215,7 +215,8 @@ class Worker(configurated):
                 loader = loader[14:]
             appr += ' (%s)' % loader
         if self.autoscale:
-            concurrency = '{min=%s, max=%s}' % tuple(self.autoscale)
+            max, min = self.autoscale
+            concurrency = '{min=%s, max=%s}' % (min, max)
         pool = self.pool_cls
         if not isinstance(pool, basestring):
             pool = pool.__module__