
    i	                     &   d Z dxZ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eez  ez  ez  ez  ez  ez  e	z  e
z  ez  ez  ez  ez  ez  ez  ez  ez  Z G d de          Z G d de          Z G d de          Z G d de          ZdS ))EVENT_SCHEDULER_STARTEDEVENT_SCHEDULER_SHUTDOWNEVENT_SCHEDULER_PAUSEDEVENT_SCHEDULER_RESUMEDEVENT_EXECUTOR_ADDEDEVENT_EXECUTOR_REMOVEDEVENT_JOBSTORE_ADDEDEVENT_JOBSTORE_REMOVEDEVENT_ALL_JOBS_REMOVEDEVENT_JOB_ADDEDEVENT_JOB_REMOVEDEVENT_JOB_MODIFIEDEVENT_JOB_EXECUTEDEVENT_JOB_ERROREVENT_JOB_MISSEDEVENT_JOB_SUBMITTEDEVENT_JOB_MAX_INSTANCESSchedulerEventJobEventJobExecutionEventJobSubmissionEvent                   @         i   i   i   i   i    i @  i   i   c                   *     e Zd ZdZd fd	Zd Z xZS )r   z
    An event that concerns the scheduler itself.

    :ivar code: the type code of this event
    :ivar alias: alias of the job store or executor that was added or removed (if applicable)
    Nc                 r    t          t          |                                            || _        || _        d S N)superr   __init__codealias)selfr%   r&   	__class__s      X/var/www/html/crypto-bot/backend/venv/lib/python3.11/site-packages/apscheduler/events.pyr$   zSchedulerEvent.__init__)   s1    nd##,,...	


    c                 .    d| j         j        | j        fz  S )Nz<%s (code=%d)>)r(   __name__r%   )r'   s    r)   __repr__zSchedulerEvent.__repr__.   s    4>#:DI"FFFr*   r"   )r,   
__module____qualname____doc__r$   r-   __classcell__r(   s   @r)   r   r   !   s]              
G G G G G G Gr*   r   c                   "     e Zd ZdZ fdZ xZS )r   z
    An event that concerns a job.

    :ivar code: the type code of this event
    :ivar job_id: identifier of the job in question
    :ivar jobstore: alias of the job store containing the job in question
    c                     t          t          |                               |           || _        || _        || _        d S r"   )r#   r   r$   r%   job_idjobstore)r'   r%   r5   r6   r(   s       r)   r$   zJobEvent.__init__;   s:    h&&t,,,	 r*   r,   r.   r/   r0   r$   r1   r2   s   @r)   r   r   2   sB         ! ! ! ! ! ! ! ! !r*   r   c                   "     e Zd ZdZ fdZ xZS )r   z
    An event that concerns the submission of a job to its executor.

    :ivar scheduled_run_times: a list of datetimes when the job was intended to run
    c                 j    t          t          |                               |||           || _        d S r"   )r#   r   r$   scheduled_run_times)r'   r%   r5   r6   r:   r(   s        r)   r$   zJobSubmissionEvent.__init__I   s4     $''00vxHHH#6   r*   r7   r2   s   @r)   r   r   B   sB         7 7 7 7 7 7 7 7 7r*   r   c                   (     e Zd ZdZ	 	 d fd	Z xZS )r   aM  
    An event that concerns the running of a job within its executor.

    :ivar scheduled_run_time: the time when the job was scheduled to be run
    :ivar retval: the return value of the successfully executed job
    :ivar exception: the exception raised by the job
    :ivar traceback: a formatted traceback for the exception
    Nc                     t          t          |                               |||           || _        || _        || _        || _        d S r"   )r#   r   r$   scheduled_run_timeretval	exception	traceback)	r'   r%   r5   r6   r=   r>   r?   r@   r(   s	           r)   r$   zJobExecutionEvent.__init__X   sG    &&//fhGGG"4""r*   )NNNr7   r2   s   @r)   r   r   N   sQ          [_# # # # # # # # # #r*   r   N)__all__r   EVENT_SCHEDULER_STARTr   r   r   r   r   r   r	   r
   r   r   r   r   r   r   r   r   	EVENT_ALLobjectr   r   r   r    r*   r)   <module>rF      s  T 39 8 /!              ! $'??BXX$%';<>TU!"$:;=ST   11 4FF I[[ 	  0	0 3F	F I`	`	G G G G GV G G G"! ! ! ! !~ ! ! ! 	7 	7 	7 	7 	7 	7 	7 	7# # # # # # # # # #r*   