Browse Source

Envvar AUTOSCALE_KEEPALIVE can now be float

Ask Solem 12 years ago
parent
commit
41f0596443
1 changed files with 1 additions and 1 deletions
  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):