|
Server : LiteSpeed System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : elvh3918 ( 1528) PHP Version : 8.2.31 Disable Function : mail Directory : /usr/local/lib/python3.9/site-packages/celery/worker/__pycache__/ |
a
��Sh� � @ 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>