소스 검색

Envvar AUTOSCALE_KEEPALIVE can now be float

Ask Solem 12 년 전
부모
커밋
41f0596443
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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):