File: //usr/local/lib/python3.9/site-packages/celery/worker/__pycache__/autoscale.cpython-39.pyc
a
X>h� � @ s� d Z ddlZddlZddlmZmZ ddlmZ ddlm Z ddl
mZ ddlm
Z
dd lmZ dd
lmZ dZee�Zejejej ZZZeej�dd
��ZG dd� de j�ZG dd� de
�ZdS )z�Pool Autoscaling.
This module implements the internal thread responsible
for growing and shrinking the pool according to the
current autoscale settings.
The autoscale thread is only enabled if
the :option:`celery worker --autoscale` option is used.
� N)� monotonic�sleep)� DummyLock)� bootsteps)�
get_logger)�bgThread� )�state)�Pool)�
Autoscaler�WorkerComponent�AUTOSCALE_KEEPALIVE� c @ s>