
    `f                        d Z ddlZddlZddlZddlZddlZddlmZmZm	Z	 ddl
m
Z
 ddlmZ ddlmZ ddlmZ ddlmZ dd	lmZ dd
lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z m!Z! ddl"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+ ddl,m-Z-m.Z. ddl/m0Z0 ddl1m2Z2m3Z3 ddl4m5Z5 ddl6m7Z7 ddl8m9Z9 ddl:m;Z;m<Z<m=Z= ddl>m?Z?m@Z@mAZA ddlBmCZC ddlDmEZEmFZF ddlGmHZHmIZImJZJ ddlKmLZLmMZM ddlNmOZP ddlQmRZR dd lSmTZTmUZU dd!lVmWZW dd"lXmYZYmZZZm[Z[m\Z\m]Z]m^Z^m_Z_m`Z`maZa d#Zb eCec          Zdd$hZeejf        g                    d%          Zhd&Zid' Zjd( Zkd) Zl G d* d+ee7          Zm G d, d-          ZnenZodS ).z#Actual App instance implementation.    N)UserDictdefaultdictdeque)datetime
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_awaretimezone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)Celeryzcelery.fixups.django:fixupFORKED_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                 V    t          | j        |t          t          ht          g          S )zReturn 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.
    )stopmonkey_patched)r.   	__class__rC   object__name__)appattrs     A/var/www/html/env/lib/python3.11/site-packages/celery/app/base.pyapp_has_customrN   B   s-     cmT0@&.Z1 1 1 1    c                 J     t                                          |           | S )zUnpickle app.)r   	_rgetattr)reverse_nameargss     rM   _unpickle_appattrrT   N   s%     5?&&|44d;;rO   c                     	 |                                   d S # t          $ r(}t                              d|d           Y d }~d S d }~ww xY w)Nz!after forker raised exception: %rr2   )exc_info)_after_fork	Exceptionloggerinfo)rK   excs     rM   _after_fork_cleanup_appr\   U   sl    J J J J7qIIIIIIIIIJs    
A
AA
c                   \    e Zd ZdZdZd Zd Zd Zd Zd Z	d Z
d Zd	 Zed
             ZdS )PendingConfigurationNc                 v    t                               | d|           t                               | d|           d S )N_datacallback)rI   __setattr__)selfconfra   s      rM   __init__zPendingConfiguration.__init__i   s8    4$///4X66666rO   c                     || j         |<   d S Nr`   rc   keyvalues      rM   __setitem__z PendingConfiguration.__setitem__m   s    
3rO   c                 8    | j                                          d S rg   )r`   clearrc   s    rM   rn   zPendingConfiguration.clearp   s    
rO   c                 *     | j         j        |i | d S rg   )r`   updaterc   rS   kwargss      rM   rq   zPendingConfiguration.updates   s"    
4*6*****rO   c                 &     | j         j        |i |S rg   )r`   
setdefaultrr   s      rM   ru   zPendingConfiguration.setdefaultv   s    $tz$d5f555rO   c                     || j         v S rg   rh   )rc   rj   s     rM   __contains__z!PendingConfiguration.__contains__y   s     dj  rO   c                 *    t          | j                  S rg   )lendataro   s    rM   __len__zPendingConfiguration.__len__   s    49~~rO   c                 *    t          | j                  S rg   )reprrz   ro   s    rM   __repr__zPendingConfiguration.__repr__   s    DIrO   c                 *    |                                  S rg   )ra   ro   s    rM   rz   zPendingConfiguration.data   s    }}rO   )rJ   
__module____qualname__ra   r`   re   rl   rn   rq   ru   rw   r{   r~   r   rz    rO   rM   r^   r^   ^   s         HE7 7 7       + + +6 6 6! ! !       _  rO   r^   c                      e Zd ZdZeZej        Zej        ej	        cZZ	dZ
dZdZeZdZdZdZdZdZdZdZdZdZdZdZdZd	ZdZdZdZdZ	 	 	 	 	 dedZ d Z!d Z"d Z#d Z$d Z%d Z&d Z'dfdZ(dfdZ)d Z*dgdZ+dhdZ,d Z-d Z.dgdZ/d Z0	 didZ1djdZ2dkdZ3ddddde4d fd!Z5	 	 dld#Z6d$ Z7d% Z8d& Z9	 	 	 	 	 	 	 	 	 dmd(Z:dfd)Z;dfd*Z<	 	 	 	 	 dnd+Z=	 	 	 	 	 dod,Z>e=Z?dpd-Z@dqd.ZAeAZBdfd/ZCeCZDd0 ZEd1 ZFdfd2ZGd3 ZHd4 ZId5 ZJd6 ZKd7 ZLd8 ZMd9 ZN	 drd;ZO	 dsd<ZPdfd=ZQd> ZR	 	 dtd@ZSdA ZTdB ZUdC ZVdD ZWdE ZXdF ZYdG ZZdH Z[e\dI             Z]e\dJ             Z^e\dK             Z_e\dL             Z`e\dM             Zae\dN             Zbe\dO             Zce\dP             ZdeedQ             ZfeedR             ZgeedS             Zhe\dT             ZieedU             Zje\dV             ZkeedW             Zleljm        dX             ZleedY             ZneedZ             Zoeojm        d[             Zoe\d\             Zpe\d]             Zqe\d^             Zre\d_             Zse\d`             Zte\da             Zueedb             Zvdc Zwe\dd             ZxdS )urC   a  Celery application.

    Arguments:
        main (str): Name of the main module if running as `__main__`.
            This is used as the prefix for auto-generated task names.

    Keyword Arguments:
        broker (str): URL of the default broker used.
        backend (Union[str, Type[celery.backends.base.Backend]]):
            The result store backend class, or the name of the backend
            class to use.

            Default is the value of the :setting:`result_backend` setting.
        autofinalize (bool): If set to False a :exc:`RuntimeError`
            will be raised if the task registry or tasks are used before
            the app is finalized.
        set_as_current (bool):  Make this the global current app.
        include (List[str]): List of modules every worker should import.

        amqp (Union[str, Type[AMQP]]): AMQP object or class name.
        events (Union[str, Type[celery.app.events.Events]]): Events object or
            class name.
        log (Union[str, Type[Logging]]): Log object or class name.
        control (Union[str, Type[celery.app.control.Control]]): Control object
            or class name.
        tasks (Union[str, Type[TaskRegistry]]): A task registry, or the name of
            a registry class.
        fixups (List[str]): List of fix-up plug-ins (e.g., see
            :mod:`celery.fixups.django`).
        config_source (Union[str, class]): Take configuration from a class,
            or object.  Attributes may include any settings described in
            the documentation.
        task_cls (Union[str, Type[celery.app.task.Task]]): base task class to
            use. See :ref:`this section <custom-task-cls-app-wide>` for usage.
    Nzcelery.app.amqp:AMQPzcelery.app.events:Eventszcelery.app.log:Loggingzcelery.app.control:Controlzcelery.app.task:Taskz celery.app.registry:TaskRegistryFTc                     t          j                     _        d  _        t	                       _        | _        |p j         _        |p j         _        |p 	                                 _
        |p j         _        |p j         _        |p j         _        | _        t           j                   _        t#          t$                     _        t#          t$                     _        | _        | _        | _        d _        | _        t5                       _        t5                       _        d _        t          j                     _        t5                       _         |	 _!        tE           j!        tF                    s!                      j!        pi            _!        tI           d           _%        |pi  _&        t%                       _'         (                    d|
            (                    d|            (                    d|           |)                                D ]\  }} (                    ||           tU          tW           j&         j,                   j        tZ          t\          f           _/        |t%           j0                  n| _1         fd j1        D              _2         j        r 3                                  j4        tk          d	           _4        tk          d
dh           _6        tk          d	           _7        tk          d	           _8        d _9         :                                 tw                      d S )NF__reduce_args__
broker_urlresult_backendinclude)prefixkeysc                 @    g | ]} t          |                    S r   )r+   ).0fixuprc   s     rM   
<listcomp>z#Celery.__init__.<locals>.<listcomp>!  s,    MMM-u--d33MMMrO   zapp.on_configurenamezapp.on_after_configuresource)r   providing_argszapp.on_after_finalizezapp.on_after_fork)<	threadinglocal_local_backend_cacher   clockmainamqp_cls
events_cls_get_default_loader
loader_clslog_clscontrol_clstask_clsset_as_currentr+   registry_clsr   setuser_optionsstepsautofinalize	namespacestrict_typing
configured_config_sourcer   _pending_defaults_pending_periodic_tasks	finalizedRLock_finalize_mutex_pending_tasks
isinstancer9   rN   _using_v1_reduce_preconf_preconf_set_by_auto_Celery__autosetitemsr;   r^   _finalize_pending_confr=   r<   _confbuiltin_fixupsfixups_fixupsset_currenton_configurer%   on_after_configureon_after_finalizeon_after_forkuse_fast_trace_taskon_initr   )rc   r   loaderbackendamqpeventslogcontrolr   tasksbrokerr   changesconfig_sourcer   r   r   r   r   rs   rj   rk   s   `                     rM   re   zCelery.__init__   s      o''"!^^
	- 3DO >D$<$<$>$>*dl"6d&6 1DM,*4+<==',, %%
("*+!&',ww$(00$+|44 	?++DK,=2>>DK
 !/t5F G G  2$'EE!|V,,,'111y'*** ,,.. 	' 	'JCNN3&&&& t:< <>!?3	
 
 

 39.c$-...fMMMMMMM 	 $ &,> ? ? ?D"()$:#
 #
 #
 "(-D!E!E!E#)<=== $) drO   c                 R    t           j                            d          p| j        pdS )NCELERY_LOADERzcelery.loaders.app:AppLoader)osenvirongetr   ro   s    rM   r   zCelery._get_default_loader8  s,     JNN?++ +O+*	
rO   c                     dS )z!Optional callback called at init.Nr   ro   s    rM   r   zCelery.on_init@  s      rO   c                 V    |&|| j         |<   | j                            |           d S d S rg   )r   r   addri   s      rM   	__autosetzCelery.__autosetC  s9    !&DM#%))#..... rO   c                 $    t          |            dS )z*Make this the current app for this thread.N)r   ro   s    rM   r   zCelery.set_currentH  s    rO   c                 $    t          |            dS )z*Make this the default app for all threads.N)r   ro   s    rM   set_defaultzCelery.set_defaultL  s    rO   c                 b    | j         s%d| _         t          t          | t                     d S d S d S NT)_after_fork_registeredr   r\   ro   s    rM   _ensure_after_forkzCelery._ensure_after_forkP  sE    * 	C*.D'".#D*ABBBBB	C 	C..rO   c                 2    d| _         t          |            dS )aO  Clean up after the application.

        Only necessary for dynamically created apps, and you should
        probably use the :keyword:`with` statement instead.

        Example:
            >>> with Celery(set_as_current=False) as app:
            ...     with app.connection_for_write() as conn:
            ...         pass
        N)_poolr   ro   s    rM   closezCelery.closeV  s     
rO   c                 8   ddl m} | |j        d         _        |t          j        }	 |                    |d           n0# t          $ r#}|j        cY d}~d|j        d         _        S d}~ww xY w	 d|j        d         _        dS # d|j        d         _        w xY w)zgRun :program:`celery` using `argv`.

        Uses :data:`sys.argv` if `argv` is not specified.
        r   celeryNF)rS   standalone_mode)	celery.bin.celeryr   paramsdefaultsysargvr   r	   	exit_code)rc   r   r   es       rM   startzCelery.startd  s    
 	-,,,,,#'a <8D	,KKT5K9999 	 	 	;'+FM!$$	 : (,FM!$$$tFM!$++++s4   A  B  
A-
A(A-B (A--B Bc                 t    |t           j        }d|vrt          d          |                     |           dS )znRun :program:`celery worker` using `argv`.

        Uses :data:`sys.argv` if `argv` is not specified.
        NworkerzkThe worker sub-command must be specified in argv.
Use app.start() to programmatically start other commands.)r   )r   r   
ValueErrorr   )rc   r   s     rM   worker_mainzCelery.worker_mainw  sO    
 <8D4L  
 	


rO   c           
          t           r&|                    dd          rddlm}  ||ddi|S d fd	}t	          |          dk    r/t          |d                   r  |di || S t          d	          |rKt          d
                    t          t	          |          t	          |          g                               |di |S )a  Decorator to create a task class out of any callable.

        See :ref:`Task options<task-options>` for a list of the
        arguments that can be passed to this decorator.

        Examples:
            .. code-block:: python

                @app.task
                def refresh_feed(url):
                    store_feed(feedparser.parse(url))

            with setting extra options:

            .. code-block:: python

                @app.task(exchange='feeds')
                def refresh_feed(url):
                    return store_feed(feedparser.parse(url))

        Note:
            App Binding: For custom apps the task decorator will return
            a proxy object, so that the act of creating the task is not
            performed until the task is used or the task registry is accessed.

            If you're depending on binding to be deferred, then you must
            not access any attributes on the returned object until the
            application is fully set up (finalized).
        lazyTr2   )shared_taskFNc                 &     | fd}|S )Nc                 
    r! fd} j         |_         t          |           rj        r j         fi }n8t	          j         f j                  }j                            |           r |          S |S )Nc                       | j         fi S rg   )_task_from_fun)rK   funoptss    rM   conszRCelery.task.<locals>.inner_create_task_cls.<locals>._create_task_cls.<locals>.cons  s    1s1#>>>>>rO   )__doc__)rJ   r   r   r   r!   r   r   append)r   r   ret_filtr   r   rc   shareds   `  rM   _create_task_clszDCelery.task.<locals>.inner_create_task_cls.<locals>._create_task_cls  s     2? ? ? ? ? ?$'LDM+D111 .t~ .-$-c::T::CC 't':SFD/2{< < <CM((--- & 5::%
rO   r   )r   filterr   r   r   r   rc   s   ` `` @rM   inner_create_task_clsz*Celery.task.<locals>.inner_create_task_cls  sA    E        " $#rO   r   z(argument 1 to @task() must be a callablez+@task() takes exactly 1 argument ({} given))TNTr   )	USING_EXECVr    r   ry   callable	TypeErrorformatsum)rc   rS   r   r   r  s   `    rM   taskzCelery.task  s#   <  	:488FD11 	: &%%%%%;959D999	$ 	$ 	$ 	$ 	$ 	$, t99>>Q   <4,,44t44d;;FGGG 	2=DDTCII.//1 12 2 2 %$,,t,,,rO   c                 >    t          t          ||                    S )Nbound)staticmethodr'   )rc   r   r  s      rM   type_checkerzCelery.type_checker  s    M#U;;;<<<rO   c                 8   | j         s| j        st          d          |p|                     |j        |j                  }|p| j        }|| j        vr|r|nt          |          } t          |j        |ft          | ||d|j        |j        |j        |                     ||          |d	fi |                      }	 |j        |_        n# t          $ r Y nw xY w|| j        |j        <   |                    |            t%          |fi | n| j        |         }|S )N"Contract breach: app not finalizedTr
  )	rK   r   run
_decoratedr   r   __annotations__
__header____wrapped__)r   r   RuntimeErrorr)   rJ   r   Taskr   r  typedictr   r  r  r   AttributeErrorr   bindr6   )rc   r   r   baser  optionsr  r  s           rM   r   zCelery._task_from_fun  sm   ~ 	Ed&7 	ECDDDGt))#,GG tyt{""4##<#4#4C	14tgt";!n#&#6"//4/@@"	5$ 	5$ 	00 	00 (/	00 	00 	1 	1 	3 	3D$'$4!!!   %)DK	"IIdOOO#D44G4444;t$Ds   >C 
CCc                 ,   t          j        |          r
 |            p|}|j        s4t          |          }|                     |j        |j                  |_        t          |fi | || j        |j        <   | |_	        |
                    |            |S )zUtility for registering a task-based class.

        Note:
            This is here for compatibility with old Celery 1.0
            style task classes, you should not need to use this for
            new projects.
        )inspectisclassr   r  r)   rJ   r   r6   r   _appr  )rc   r  r  r   s       rM   register_taskzCelery.register_task  s     t$$/74y 	8DzzH**!8#68 8DI00000 $
49			$rO   c                 $    t          | ||          S rg   )r)   )rc   r   modules      rM   r)   zCelery.gen_task_name  s    T4000rO   c                    | j         5  | j        s|r| j        st          d          d| _        t	          |            | j        }|r#t          |                                           |#| j        	                                D ]}|
                    |            | j                            |            ddd           dS # 1 swxY w Y   dS )zFinalize the app.

        This loads built-in tasks, evaluates pending task decorators,
        reads configuration, etc.
        r  TsenderN)r   r   r   r  r   r   r"   popleftr   valuesr  r   send)rc   autopendingr  s       rM   finalizezCelery.finalize  s.    ! 	9 	9> 9 M 1 M&'KLLL!%'---- 6"7??#4#4555  6 !K..00 $ $DIIdOOOO&++4+888	9 	9 	9 	9 	9 	9 	9 	9 	9 	9 	9 	9 	9 	9 	9 	9 	9 	9s   B.CC
Cc                     t          |          s|fdc}| j        r"| j                             |                      S | j                            |           dS )ad  Add default configuration from dict ``d``.

        If the argument is a callable function then it will be regarded
        as a promise, and it won't be loaded until the configuration is
        actually needed.

        This method can be compared to:

        .. code-block:: pycon

            >>> celery.conf.update(d)

        with a difference that 1) no copy will be made and 2) the dict will
        not be transferred when the worker spawns child processes, so
        it's important that the same configuration happens at import time
        when pickle restores the object on the other side.
        c                       S rg   r   )ds   rM   <lambda>z%Celery.add_defaults.<locals>.<lambda>/  s    ! rO   N)r  r   r   add_defaultsr   r   )rc   r   r/  s     @rM   r1  zCelery.add_defaults  sg    $ }} 	$))))FAs? 	2:**3355111%%c*****rO   c                     || _         |p| j        | _        |s| j        r,d| _        | j                            ||          r| j        S dS dS )a  Read configuration from object.

        Object is either an actual object or the name of a module to import.

        Example:
            >>> celery.config_from_object('myapp.celeryconfig')

            >>> from myapp import celeryconfig
            >>> celery.config_from_object(celeryconfig)

        Arguments:
            silent (bool): If true then import errors will be ignored.
            force (bool): Force reading configuration immediately.
                By default the configuration will be read only when required.
        N)silent)r   r   r   r   r   config_from_objectrd   )rc   objr3  forcer   s        rM   r4  zCelery.config_from_object4  sk    " ""4dn 	!DO 	!DJ{--c&-AA !y ! !	! 	!rO   c                     t           j                            |          }|s=|rdS t          t                                                              |                    |                     |||          S )a3  Read configuration from environment variable.

        The value of the environment variable must be the name
        of a module to import.

        Example:
            >>> os.environ['CELERY_CONFIG_MODULE'] = 'myapp.celeryconfig'
            >>> celery.config_from_envvar('CELERY_CONFIG_MODULE')
        F)r3  r6  )r   r   r   r   ERR_ENVVAR_NOT_SETstripr  r4  )rc   variable_namer3  r6  module_names        rM   config_from_envvarzCelery.config_from_envvarL  sz     jnn]33 	B u&"((**11-@@B B B&&{6&OOOrO   r   c                 l    | j                             | j                            ||                     d S rg   )r   rq   r   cmdline_config_parser)rc   r   r   s      rM   config_from_cmdlinezCelery.config_from_cmdline^  s;    
K--dI>>	
 	
 	
 	
 	
rO   jsonc           
      4    ddl m}  |||||||||           S )a;  Setup the message-signing serializer.

        This will affect all application instances (a global operation).

        Disables untrusted serializers and if configured to use the ``auth``
        serializer will register the ``auth`` serializer with the provided
        settings into the Kombu serializer registry.

        Arguments:
            allowed_serializers (Set[str]): List of serializer names, or
                content_types that should be exempt from being disabled.
            key (str): Name of private key file to use.
                Defaults to the :setting:`security_key` setting.
            key_password (bytes): Password to decrypt the private key.
                Defaults to the :setting:`security_key_password` setting.
            cert (str): Name of certificate file to use.
                Defaults to the :setting:`security_certificate` setting.
            store (str): Directory containing certificates.
                Defaults to the :setting:`security_cert_store` setting.
            digest (str): Digest algorithm used when signing messages.
                Default is ``sha256``.
            serializer (str): Serializer used to encode messages after
                they've been signed.  See :setting:`task_serializer` for
                the serializers supported.  Default is ``json``.
        r   )setup_securityrK   )celery.securityrB  )	rc   allowed_serializersrj   key_passwordcertstoredigest
serializerrB  s	            rM   rB  zCelery.setup_securityc  sE    8 	322222~13d#VZTC C C 	CrO   r   c                     |r|                      ||          S t          j                            t	          | j         ||          d|            dS )a  Auto-discover task modules.

        Searches a list of packages for a "tasks.py" module (or use
        related_name argument).

        If the name is empty, this will be delegated to fix-ups (e.g., Django).

        For example if you have a directory layout like this:

        .. code-block:: text

            foo/__init__.py
               tasks.py
               models.py

            bar/__init__.py
                tasks.py
                models.py

            baz/__init__.py
                models.py

        Then calling ``app.autodiscover_tasks(['foo', 'bar', 'baz'])`` will
        result in the modules ``foo.tasks`` and ``bar.tasks`` being imported.

        Arguments:
            packages (List[str]): List of packages to search.
                This argument may also be a callable, in which case the
                value returned is used (for lazy evaluation).
            related_name (Optional[str]): The name of the module to find.  Defaults
                to "tasks": meaning "look for 'module.tasks' for every
                module in ``packages``.".  If ``None`` will only try to import
                the package, i.e. "look for 'module'".
            force (bool): By default this call is lazy so that the actual
                auto-discovery won't happen until an application imports
                the default modules.  Forcing will cause the auto-discovery
                to happen immediately.
        F)weakr&  N)_autodiscover_tasksr   import_modulesconnectr   )rc   packagesrelated_namer6  s       rM   autodiscover_taskszCelery.autodiscover_tasks  si    P  	D++HlCCC&&{$h(
 (
d 	' 	$ 	$ 	$ 	$ 	$rO   c                 \    |r|                      ||          S |                     |          S rg   )_autodiscover_tasks_from_names_autodiscover_tasks_from_fixups)rc   rP  rQ  rs   s       rM   rM  zCelery._autodiscover_tasks  s5     	O66xNNN33LAAArO   c                 j    | j                             t          |          r
 |            n||          S rg   )r   rR  r  )rc   rP  rQ  s      rM   rT  z%Celery._autodiscover_tasks_from_names  s8    {--"8,,:HHJJJ(L
 
 	
rO   c                 N    |                      d | j        D             |          S )Nc                 `    g | ]+}t          |d           |                                D ]}|,S )rR  )hasattrrR  )r   r   pkgs      rM   r   z:Celery._autodiscover_tasks_from_fixups.<locals>.<listcomp>  s`     4
 4
 4
u2334
 //114
 4
  4
 4
 4
 4
rO   )rQ  )rT  r   )rc   rQ  s     rM   rU  z&Celery._autodiscover_tasks_from_fixups  sB    22 4
 4
!\4
 4
 4
 %	 3 & & 	&rO   r   c                 h   dx}} | j         }!|pt                      }|p|}|	p|!j        }	| j        }"|"j        r#t          j        t          d          d           |                    dd          }#|		                    ||p||||          }|t          |t                    r7t          |          |                                 z
                                  }$n[t          |t                    rDt          t!          |                    |                                 z
                                  }$n|}$|$dk     r#t"                              | d|$  d	           d}$|$|d
<   |r|sk| j        }|rb|s|j        j        p|j        j        }|s|j        j        }|"j        r3|                    d|j        j                            d                      |!j        |||||||||||t9          |          t9          |          |p| j        ||| j        j        ||||f|#|d|}%|                    dg           }&|&D ]}'|                    |'           |r|!                    |d          }|                      |          5 }(|(j!        "                                5  |#s| j#        $                    |(|            |!j%        |(||%fi | ddd           n# 1 swxY w Y   ddd           n# 1 swxY w Y    |
p| j&        |          })|#|)_'        |r"| s	| j        d} }|r|(                    |)           |)S )zSend task by name.

        Supports the same arguments as :meth:`@-Task.apply_async`.

        Arguments:
            name (str): Name of task to call (e.g., `"tasks.add"`).
            result_cls (AsyncResult): Specify custom result class.
        Nz,task_always_eager has no effect on send_task   )
stacklevelignore_resultFr   z% has an expiration date in the past (aJ  s ago).
We assume this is intended and so we have set the expiration date to 0 instead.
According to RabbitMQ's documentation:
"Setting the TTL to 0 causes messages to be expired upon reaching a queue unless they can be delivered to a consumer immediately."
If this was unintended, please check the code which published this task.
expirationpriority)r^  replaced_task_nestingstamped_headers)auto_declareT))r   r   routerrd   task_always_eagerwarningswarnr   poprouter   r   r/   nowtotal_secondsstrr
   rY   warningcurrent_worker_taskrequestroot_ididtask_inherit_parent_priorityru   delivery_infor   create_task_messager(   
thread_oidtask_send_sent_eventProducerproducer_or_acquire
connection_reraise_as_library_errorsr   on_task_callsend_task_messageAsyncResultignored	add_trail)*rc   r   rS   rs   	countdownetatask_idproducerry  rd  
result_clsexpires	publisherlink
link_erroradd_to_parentgroup_idgroup_indexretrieschordreply_to
time_limitsoft_time_limitrp  	parent_id
route_nameshadowchain	task_typera  r  parenthave_parentr   rd   r^  	expires_smessagerb  stampPresults*                                             rM   	send_taskzCelery.send_task  s   "  $#y#TVV(y&4;y! 	M,>      OU;;,,Z'4vyB B'8,, $- #xxzz*+8=?? 	GS)) $-W%%' ')-45B]__ 	 $	1}} + +iZ + + +
 
 
 	$-GL! 
	Ui 
	U-F U J$n4I8IG  2 & 1I4 U&&z'-~'C'G'G
'S'SU U U +$*T4C;Wetj44'_I*Y	
 ("7	
 	
 <C	
 	
 "++&7<<$ 	 	EKK 	E}}Ze}DDH%%h// 	D188:: D D$ :L--a999&&q$CC7CCCD D D D D D D D D D D D D D D	D 	D 	D 	D 	D 	D 	D 	D 	D 	D 	D 	D 	D 	D 	D
 1*0 0':: ' 	) E&*&> )  (((s6   ?K*.KK*K	K*K	K**K.1K.c                 6     | j         |p| j        j        fi |S )z|Establish connection used for consuming.

        See Also:
            :meth:`connection` for supported arguments.
        )_connectionrd   broker_read_urlrc   urlrs   s      rM   connection_for_readzCelery.connection_for_read-  s)      t @ty'@KKFKKKrO   c                 6     | j         |p| j        j        fi |S )z|Establish connection used for producing.

        See Also:
            :meth:`connection` for supported arguments.
        )r  rd   broker_write_urlr  s      rM   connection_for_writezCelery.connection_for_write5  s)      t Aty'ALLVLLLrO   c                 N     | j         |p| j        j        f||||||||	|
||d|S )aC  Establish a connection to the message broker.

        Please use :meth:`connection_for_read` and
        :meth:`connection_for_write` instead, to convey the intent
        of use for this connection.

        Arguments:
            url: Either the URL or the hostname of the broker to use.
            hostname (str): URL, Hostname/IP-address of the broker.
                If a URL is used, then the other argument below will
                be taken from the URL instead.
            userid (str): Username to authenticate as.
            password (str): Password to authenticate with
            virtual_host (str): Virtual host to use (domain).
            port (int): Port to connect to.
            ssl (bool, Dict): Defaults to the :setting:`broker_use_ssl`
                setting.
            transport (str): defaults to the :setting:`broker_transport`
                setting.
            transport_options (Dict): Dictionary of transport specific options.
            heartbeat (int): AMQP Heartbeat in seconds (``pyamqp`` only).
            login_method (str): Custom login method to use (AMQP only).
            failover_strategy (str, Callable): Custom failover strategy.
            **kwargs: Additional arguments to :class:`kombu.Connection`.

        Returns:
            kombu.Connection: the lazy connection instance.
        )useridpasswordvirtual_hostportsslconnect_timeout	transporttransport_options	heartbeatlogin_methodfailover_strategy)r  rd   r  )rc   hostnamer  r  r  r  r  r  r  r  r  r  r  rs   s                 rM   ry  zCelery.connection=  sY    B )t(2	2
H%Dc+y/9%9J
 
 
 
 	
rO   c                 2   | j         }| j                            ||p|j        |p|j        |p|j        |p|j        |p|j        |                     d|          |
|p|j	        |p|j
        t          |j        fi |	pi |                     d|                    S )Nbroker_use_sslbroker_connection_timeout)r  r  r  r  r  r  r  )rd   r   
Connectionbroker_userbroker_passwordbroker_vhostbroker_portbroker_transporteitherbroker_login_methodbroker_failover_strategyr  broker_transport_options)rc   r  r  r  r  r  r  r  r  r  r  r  r  rs   rd   s                  rM   r  zCelery._connectionh  s    
 yy##&d&,,-D-$D$84#8,c22%A)A!BT%B"- 1B1Hb  !KK+_ ! $ 
 
 	
rO   c                 d    |r| j                             d          S |                                 S )z)Helper for :meth:`connection_or_acquire`.Tblock)poolacquirer  )rc   r  s     rM   _acquire_connectionzCelery._acquire_connection  s5     	19$$4$000((***rO   c                 0    t          || j        |          S )aR  Context used to acquire a connection from the pool.

        For use within a :keyword:`with` statement to get a connection
        from the pool if one is not already provided.

        Arguments:
            connection (kombu.Connection): If not provided, a connection
                will be acquired from the connection pool.
        )r  )r-   r  )rc   ry  r  ___s        rM   connection_or_acquirezCelery.connection_or_acquire  s     z4+C$OOOOrO   c                 :    t          || j        j        d          S )aE  Context used to acquire a producer from the pool.

        For use within a :keyword:`with` statement to get a producer
        from the pool if one is not already provided

        Arguments:
            producer (kombu.Producer): If not provided, a producer
                will be acquired from the producer pool.
        Tr  )r-   producer_poolr  )rc   r  s     rM   rx  zCelery.producer_or_acquire  s(     d(0
 
 
 	
rO   c                      t          |          S )z<Prepare configuration before it is merged with the defaults.)r8   )rc   cs     rM   prepare_configzCelery.prepare_config  s    '***rO   c                 v    t          t          j                              }|                    | j                  S )z/Return the current time and date as a datetime.)r1   r   utcnow
astimezoner0   )rc   
now_in_utcs     rM   rj  z
Celery.now  s-    HO--..
$$T]333rO   c                 @    | j         j                            |          S )zxSelect subset of queues.

        Arguments:
            queues (Sequence[str]): a list of queue names to keep.
        )r   queuesselect)rc   r  s     rM   select_queueszCelery.select_queues  s     y&&v...rO   c                 r    t          dt          d|          t          | j        j        |          g          S )zGet key from configuration or use default values.

        Fallback to the value of a configuration key if none of the
        `*values` are true.
        N)r&   r   rd   r   )rc   default_keydefaultss      rM   r  zCelery.either  s:     T$!!;ty}k#J#J
   	rO   c                      t          |           S )z)Return information useful in bug reports.)rA   ro   s    rM   rA   zCelery.bugreport  s    rO   c                 x    t          j        | j        p| j        j        | j                  \  }} || |          S )N)rK   r  )r3   by_urlbackend_clsrd   r   r   )rc   r   r  s      rM   _get_backendzCelery._get_backend  sC    8	 8K  w4S))))rO   c                     	 |                                  x}| _        n!# t          $ r}t          |j         |d}~ww xY w|S )zGet config value by key and finalize loading the configuration.

        Note:
            This is used by PendingConfiguration:
                as soon as you access a key the configuration is read.
        N)_load_configr   r  ModuleNotFoundErrorrS   )rc   rd   errs      rM   r   zCelery._finalize_pending_conf  sX    	: $ 1 1 3 33D4:: 	: 	: 	: &sx0c9		: s    
<7<c                    t          | j        t                    r| j                            |            n|                                  | j        r| j                            | j                   d| _        t          | 	                    | j        j
                  | j        | j        | j                  }| j        | j                            |           n|| _        | j        }|rC| j                            t%           |                                                                 |C| j        }|r&|                                \  }} | j        |i | |&| j                            | | j                   | j        S )Nr%  T)ignore_keysr   )r&  r   )r   r   r%   r)  r   r   r4  r   rB   r  rd   r   r   r   r   	swap_withr   r1  r"   r'  r   _add_periodic_taskr   )rc   settingspending_defpending_beatperiodic_task_argsperiodic_task_kwargss         rM   r  zCelery._load_config  s   d'00 	 ""$"////  	@K**4+>???" 0114=1$.
 
 
 :! J  ****!DJ , 	MJ##N3H;3F3F3H3H3J3J$K$KLLL  	M 3 	Q7C7K7K7M7M4 4#D#%7P;OPPP  	Q 	$$D$DDDzrO   c                     d | _         	 d | j        d         _        n# t          t          f$ r Y nw xY w| j                            |            d S )Nr   r%  )r   __dict___producer_poolr  KeyErrorr   r)  ro   s    rM   rW   zCelery._after_fork  se    
	37DM&!00) 	 	 	D	t,,,,,s    00c                 0    | |d<    | j         j        |i |S )z:Return a new :class:`~celery.Signature` bound to this app.rK   )_canvas	signaturerr   s      rM   r  zCelery.signature  s%    u%t|%t6v666rO   r   c                      | j         |||||fi |\  }}| j        r|                     |||           n | j                            ||fd|ig           |S )a  
        Add a periodic task to beat schedule.

        Celery beat store tasks based on `sig` or `name` if provided. Adding the
        same signature twice make the second task override the first one. To
        avoid the override, use distinct `name` for them.
        r   r   )_sig_to_periodic_task_entryr   r  r   r   )	rc   schedulesigrS   rs   r   r   rj   entrys	            rM   add_periodic_taskzCelery.add_periodic_task  s     6T5c47 7157 7
U? 	P##CT#::::(//#u~0NOOO
rO   c           
         |si n|}t          |t          j                  r|                    ||          n|                     |j        ||          }|pt          |          ||j        |j        |j        t          |j
        fi |dfS )N)r  r  rS   rs   r  )r   r#   CallableSignaturecloner  r   r}   rS   rs   r  r  )rc   r  r  rS   rs   r   r   s          rM   r  z"Celery._sig_to_periodic_task_entry  s    !-vS("<==;syyv&&&NN38T6:: 	  tCyy HHjCK00400#
 #
 
 	
rO   c                     |,|| j         j        v rt                              d| d           || j         j        |<   d S )NzPeriodic task key='zl' shadowed a previous unnamed periodic task. Pass a name kwarg to add_periodic_task to silence this warning.)r   beat_schedulerY   rm  )rc   rj   r  r   s       rM   r  zCelery._add_periodic_task+  s]    <C4:#;;;NNSc S S S  
 ).
 %%%rO   c                 @    |                      | j        dddd          S )z+Create a base task class bound to this app.r  r   T)r   	attributekeep_reducer#   )subclass_with_selfr   ro   s    rM   create_task_clszCelery.create_task_cls4  s-    &&M&t ' 
 
 	
rO   rK   c                     t          |          }rn|j        fd}t          || if|j        |j        d|}|s||d<   t          |p|j        |f|          S )a  Subclass an app-compatible class.

        App-compatible means that the class has a class attribute that
        provides the default app it should use, for example:
        ``class Foo: app = None``.

        Arguments:
            Class (type): The app-compatible class to subclass.
            name (str): Custom name for the target class.
            attribute (str): Name of the attribute holding the app,
                Default is 'app'.
            reverse (str): Reverse path to this object used for pickling
                purposes. For example, to get ``app.AsyncResult``,
                use ``"AsyncResult"``.
            keep_reduce (bool): If enabled a custom ``__reduce__``
                implementation won't be provided.
        c                 >    t           |                                 ffS rg   )rT   r   )rc   reverses    rM   
__reduce__z-Celery.subclass_with_self.<locals>.__reduce__Q  s    $w0D0D0F0F&GGGrO   )r   r   r  )r+   rJ   r  r   r   r  )	rc   Classr   r   r  r  kwr  attrss	       `    rM   r  zCelery.subclass_with_self;  s    & u%%$8''%.	H 	H 	H 	H 	H 'M  	 
  	-",E,D*ENUHe<<<rO   c                 2     t          |          |           S rg   r   )rc   paths     rM   rQ   zCelery._rgetattr^  s    z$%%%rO   c                     | S rg   r   ro   s    rM   	__enter__zCelery.__enter__a  s    rO   c                 .    |                                   d S rg   )r   )rc   rV   s     rM   __exit__zCelery.__exit__d  s    

rO   c                 R    dt          |           j         dt          |            dS )N< >)r  rJ   r@   ro   s    rM   r~   zCelery.__repr__g  s*    84::&888888rO   c                 |    | j         r|                                 S t          | j        |                                 ffS rg   )r   __reduce_v1__r?   rH   __reduce_keys__ro   s    rM   r  zCelery.__reduce__j  s=      	(%%''' 4>43G3G3I3I"JKKrO   c                 V    t           | j        | j        f|                                 z   fS rg   )r>   rH   Picklerr   ro   s    rM   r  zCelery.__reduce_v1__o  s.    
 ^T\*T-A-A-C-CC
 	
rO   c                     | j         | j        r| j        j        n| j        | j        | j        | j        | j        | j	        | j
        | j        | j        | j        | j        dS )zAKeyword arguments used to reconstruct the object when unpickling.)r   r   r   r   r   r   r   r   r   r   r   r   )r   r   r   r   r   r   r  r   r   r   r   r   r   r   r   ro   s    rM   r  zCelery.__reduce_keys__x  sc     I&*oH
""4=o'Mo<'k!0
 
 	
rO   c           
          | j         | j        r| j        j        ni | j        | j        | j        | j        | j        | j	        d| j
        f
S )z>Deprecated method, please use :meth:`__reduce_keys__` instead.F)r   r   r   r   r   r  r   r   r   r   r   ro   s    rM   r   zCelery.__reduce_args__  sH    	H4:--b!14=t/?t*, 	,rO   c                 ,    |                      d          S )zNWorker application.

        See Also:
            :class:`~@Worker`.
        zcelery.apps.worker:Workerr  ro   s    rM   WorkerzCelery.Worker       &&'BCCCrO   c                 ,    |                      d          S )zUEmbeddable worker.

        See Also:
            :class:`~@WorkController`.
        zcelery.worker:WorkControllerr  rc   rs   s     rM   WorkControllerzCelery.WorkController  s     &&'EFFFrO   c                 ,    |                      d          S )zf:program:`celery beat` scheduler application.

        See Also:
            :class:`~@Beat`.
        zcelery.apps.beat:Beatr  r!  s     rM   BeatzCelery.Beat  s     &&'>???rO   c                 *    |                                  S )zBase task class for this app.)r  ro   s    rM   r  zCelery.Task  s     ##%%%rO   c                 4    t          | j        j                  S rg   )prepare_annotationsrd   task_annotationsro   s    rM   annotationszCelery.annotations  s    "49#=>>>rO   c                 ,    |                      d          S )zgCreate new result instance.

        See Also:
            :class:`celery.result.AsyncResult`.
        zcelery.result:AsyncResultr  ro   s    rM   r}  zCelery.AsyncResult  r  rO   c                 ,    |                      d          S )Nzcelery.result:ResultSetr  ro   s    rM   	ResultSetzCelery.ResultSet  s    &&'@AAArO   c                 ,    |                      d          S )zmCreate new group result instance.

        See Also:
            :class:`celery.result.GroupResult`.
        zcelery.result:GroupResultr  ro   s    rM   GroupResultzCelery.GroupResult  r  rO   c                     | j         ]|                                  | j        j        }t	          j        |           t          j        |                                          | _         | j         S )zBroker connection pool: :class:`~@pool`.

        Note:
            This attribute is not related to the workers concurrency pool.
        )r   r   rd   broker_pool_limitr   	set_limitconnectionsr  )rc   limits     rM   r  zCelery.pool  s[     :##%%%I/EOE"""*4+D+D+F+FGDJzrO   c                     t           j        S )z2Instance of task being executed, or :const:`None`.)r   topro   s    rM   current_taskzCelery.current_task  s     rO   c                     t                      S )zThe task currently being executed by a worker or :const:`None`.

        Differs from :data:`current_task` in that it's not affected
        by tasks calling other tasks directly, or eagerly.
        )r   ro   s    rM   rn  zCelery.current_worker_task  s     '(((rO   c                 $    t          | d          S )z+Universally unique identifier for this app.Fthreadsr   ro   s    rM   oidz
Celery.oid  s     e,,,,rO   c                 z    	 | j         j        S # t          $ r" t          | d          x| j         _        }|cY S w xY w)z*Per-thread unique identifier for this app.Tr9  )r   r;  r  r   )rc   new_oids     rM   ru  zCelery.thread_oid  sP    	;?" 	 	 	(0t(D(D(DDDKOgNNN	s    )::c                 .    t          | j        |           S )z,AMQP related functionality: :class:`~@amqp`.rC  )r*   r   ro   s    rM   r   zCelery.amqp  s     4=d3333rO   c                 J    | j         | j         S t          | j        dd          S )zA reference to the backend object

        Uses self._backend_cache if it is thread safe.
        Otherwise, use self._local
        Nr   )r   getattrr   ro   s    rM   _backendzCelery._backend  s*     *&&t{It444rO   c                 >    |j         r	|| _        dS || j        _        dS )z!Set the backend object on the appN)thread_safer   r   r   )rc   r   s     rM   rA  zCelery._backend	  s-      	*")D")DKrO   c                 P    | j         |                                 | _         | j         S )zCurrent backend instance.)rA  r  ro   s    rM   r   zCelery.backend  s'     =  --//DM}rO   c                 P    | j         |                                 | _         | j         S )zCurrent configuration.)r   r  ro   s    rM   rd   zCelery.conf  s'     :**,,DJzrO   c                     || _         d S rg   )r   )rc   r/  s     rM   rd   zCelery.conf  s    


rO   c                 .    t          | j        |           S )z#Remote control: :class:`~@control`.rC  )r*   r   ro   s    rM   r   zCelery.control#  s     4+6666rO   c                 .    t          | j        |           S )z0Consuming and sending events: :class:`~@events`.rC  )r*   r   ro   s    rM   r   zCelery.events(  s     4?5555rO   c                 >     t          | j                  |           S )zCurrent loader instance.rC  )r    r   ro   s    rM   r   zCelery.loader-  s!     /~do..48888rO   c                 .    t          | j        |           S )zLogging: :class:`~@log`.rC  )r*   r   ro   s    rM   r   z
Celery.log2  s     4<T2222rO   c                     ddl m} |S )Nr   )canvas)r   rL  )rc   rL  s     rM   r  zCelery._canvas7  s    !!!!!!rO   c                 <    |                      d           | j        S )zoTask registry.

        Warning:
            Accessing this attribute will also auto-finalize the app.
        T)r*  )r,  r   ro   s    rM   r   zCelery.tasks<  s      	4   {rO   c                     | j         j        S rg   )r   r  ro   s    rM   r  zCelery.producer_poolF  s    y&&rO   c                 ,    | j         t           j        k    S )z/Check if the application uses the UTC timezone.)r0   utcro   s    rM   uses_utc_timezonezCelery.uses_utc_timezoneJ  s    },,rO   c                     | j         }|j        s|j        rt          j        S t          j        S t          j        |j                  S )zCurrent timezone for this app.

        This is a cached property taking the time zone from the
        :setting:`timezone` setting.
        )rd   r0   
enable_utcrP  r   get_timezone)rc   rd   s     rM   r0   zCelery.timezoneN  sB     y} 	& &|#~%$T]333rO   )NNNNNNNTNNNNNNNTNTrg   )F)NNF)FFN)FFr   )Nr   F)NNNNNNNNNNNNNTNNr   NNNNNNNNNNr   )NNNNNNNNNNNN)NNNNNNNNNNN)Tr   )r   r   N)r   NN)NrK   NF)yrJ   r   r   r   r:   r  r   SYSTEMIS_macOS
IS_WINDOWSr   r   r   BUILTIN_FIXUPSr   r   r  r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   re   r   r   r   r   r   r   r   r   r   r  r  r   r!  r)   r,  r1  r4  r<  r?  r7   rB  rR  rM  rT  rU  r  r  r  ry  r  broker_connectionr  r  default_connectionrx  default_producerr  rj  r  r  rA   r  r   r  rW   r  r  r  r  r  r  rQ   r  r  r~   r  r  r  r   r   r  r"  r$  r  r)  r}  r,  r.  propertyr  r6  rn  r;  ru  r   rA  setterr   rd   r   r   r   r   r  r   r  rQ  r0   r   rO   rM   rC   rC      sL       " "J GF$-y/CHj D L E#N%HK+JJ&G.K%H5L FGEE" L   M7;;?GKIMBF	U U U Un
 
 
0 0 0/ / /
    C C C  , , , ,&    E- E- E-N= = = =   >  &1 1 19 9 9 9,+ + +2 AE! ! ! !0P P P P$
 
 
 

 264dY]!*A"(C C C C@ +/7<,$ ,$ ,$ ,$\B B B

 
 
& & & AEDH8<8<AE#'BF;?QRh h h hTL L L LM M M M ?C5937598<	)
 )
 )
 )
V 6:6:486:9=	
 
 
 
4 #+ + + +
P 
P 
P 
P /
 
 
 
 ++ + +4 4 4
/ / / /    * * *  "! ! !F- - -7 7 7 48   $ @D
 
 
 
. . . .
 
 
 >C5:!= != != !=F& & &    9 9 9L L L

 
 

 
 
$, , , D D _D G G _G @ @ _@ & & _& ? ? _? D D _D B B _B D D _D   X   X ) ) X) - - _-   X 4 4 _4 5 5 X5 _* * _*   X   X 
[  [ 7 7 _7 6 6 _6 9 9 _9 3 3 _3   _   _ ' ' X'- - - 4 4 _4 4 4rO   rC   )pr   r  r   r   r   rf  collectionsr   r   r   r   operatorr   click.exceptionsr	   dateutil.parserr
   kombur   kombu.clocksr   kombu.commonr   kombu.utils.compatr   kombu.utils.objectsr   kombu.utils.uuidr   viner   r   r   r   celery._stater   r   r   r   r   r   r   r   r   celery.exceptionsr   r   celery.loadersr    celery.localr!   r"   celery.utilsr#   celery.utils.collectionsr$   celery.utils.dispatchr%   celery.utils.functionalr&   r'   r(   celery.utils.importsr)   r*   r+   celery.utils.logr,   celery.utils.objectsr-   r.   celery.utils.timer/   r0   r1   r  r3   r4   r)  r5   r'  	autoretryr6   r  r7   r8   registryr9   utilsr:   r;   r<   r=   r>   r?   r@   rA   rB   __all__rJ   rY   rX  r   r   r  r8  rN   rT   r\   r^   rC   Appr   rO   rM   <module>rz     sg   ) )  				 



      4 4 4 4 4 4 4 4 4 4             ! ! ! ! ! ! $ $ $ $ $ $       % % % % % % ! ! ! ! ! ! 2 2 2 2 2 2 / / / / / / ! ! ! ! ! !       % % % % % % % %o o o o o o o o o o o o o o o o o o o o o o F F F F F F F F ) ) ) ) ) ) 5 5 5 5 5 5 5 5 ! ! ! ! ! ! 7 7 7 7 7 7 ( ( ( ( ( ( D D D D D D D D D D K K K K K K K K K K ' ' ' ' ' ' < < < < < < < < @ @ @ @ @ @ @ @ @ @ !               7 7 7 7 7 7 . . . . . . G G G G G G G G " " " " " "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 	H		 ! jnn899	 	1 	1 	1< < <J J J) ) ) ) )8%7 ) ) )XQ4 Q4 Q4 Q4 Q4 Q4 Q4 Q4h& rO   