Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/celery/app/__pycache__/base.cpython-39.pyc
Ðазад
a t�h�� � @ s� d Z ddlZddlZddlZddlZddlZddlmZmZm Z ddl m Z ddl mZ ddl mZ ddlmZ ddlmZ dd lmZ dd lmZ ddlmZ ddlmZ dd lmZ ddlmZ ddlm Z ddl!m"Z"m#Z# ddl$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z- ddl.m/Z/m0Z0 ddl1m2Z2 ddl3m4Z4m5Z5 ddl6m7Z7 ddl8m9Z9 ddl:m;Z; ddl<m=Z=m>Z>m?Z? ddl@mAZAmBZBmCZC ddlDmEZE ddlFmGZGmHZH ddlImJZJmZmKZK ddlLmMZMmNZN ddlOmPZQ dd lRmSZS dd!lTmUZUmVZV dd"lWmXZX dd#lYmZZZm[Z[m\Z\m]Z]m^Z^m_Z_m`Z`maZambZb d$ZceEed�Zed%hZfejg�hd&�Zid'Zjd(d)� Zkd*d+� Zld,d-� ZmG d.d/� d/ee9�ZnG d0d1� d1�ZoeoZpdS )2z#Actual App instance implementation.� N)�UserDict�defaultdict�deque)�datetime)�timezone�� attrgetter)�Exit)�isoparse)�pools)�LamportClock��oid_from)�register_after_fork)�cached_property)�uuid)�starpromise)� platforms�signals) �_announce_app_finalized�_deregister_app� _register_app�_set_current_app�_task_stack�connect_on_app_finalize�get_current_app�get_current_worker_task�set_default_app)�AlwaysEagerIgnored�ImproperlyConfigured)�get_loader_cls)�PromiseProxy�maybe_evaluate)�abstract)�AttributeDictMixin)�Signal)�first� head_from_fun� maybe_list)� gen_task_name�instantiate�symbol_by_name)� get_logger)�FallbackContext� mro_lookup)�maybe_make_awarer �to_utc� )�backends�builtins)�prepare)�add_autoretry_behaviour)�DEFAULT_SECURITY_DIGEST�find_deprecated_settings)�TaskRegistry) � AppPickler�Settings�_new_key_to_old�_old_key_to_new� _unpickle_app�_unpickle_app_v2�appstr� bugreport�detect_settings)�Celeryzcelery.fixups.django:fixupZFORKED_BY_MULTIPROCESSINGz� The environment variable {0!r} is not set, and as such the configuration could not be loaded. Please set this variable and make sure it points to a valid configuration module. Example: {0}="proj.celeryconfig" c C s t | j|tthtgd�S )z�Return true if app has customized method `attr`. Note: This is used for optimizations in cases where we know how the default behavior works, but need to account for someone using inheritance to override a method/property. )�stopZmonkey_patched)r. � __class__rB �object�__name__)�app�attr� rI �/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/celery/app/base.py�app_has_customC s �rK c C s t � �| �|� S )z Unpickle app.)r � _rgetattr)Zreverse_name�argsrI rI rJ �_unpickle_appattrO s rN c C sF z| � � W n4 ty@ } ztjd|dd� W Y d }~n d }~0 0 d S )Nz!after forker raised exception: %rr1 )�exc_info)�_after_fork� Exception�logger�info)rG �excrI rI rJ �_after_fork_cleanup_appV s rU c @ s` e Zd ZdZdZdd� Zdd� Zdd� Zdd � Zd d� Z dd � Z dd� Zdd� Ze dd� �ZdS )�PendingConfigurationNc C s t �| d|� t �| d|� d S )N�_data�callback)rE �__setattr__)�self�confrX rI rI rJ �__init__j s zPendingConfiguration.__init__c C s || j |<