Explorar o código

Envvar AUTOSCALE_KEEPALIVE can now be float

Ask Solem %!s(int64=12) %!d(string=hai) anos
pai
achega
41f0596443
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      celery/worker/autoscale.py

+ 1 - 1
celery/worker/autoscale.py

@@ -30,7 +30,7 @@ from .hub import DummyLock
 logger = get_logger(__name__)
 debug, info, error = logger.debug, logger.info, logger.error
 
-AUTOSCALE_KEEPALIVE = int(os.environ.get('AUTOSCALE_KEEPALIVE', 30))
+AUTOSCALE_KEEPALIVE = float(os.environ.get('AUTOSCALE_KEEPALIVE', 30))
 
 
 class WorkerComponent(bootsteps.StartStopStep):