
    df	                        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y))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)
    c                 F    t         t        |           || _        || _        y N)superr   __init__codealias)selfr%   r&   	__class__s      K/home/api-vastappli/venv/lib/python3.12/site-packages/apscheduler/events.pyr$   zSchedulerEvent.__init__)   s    nd,.	
    c                 L    d| j                   j                  | j                  fz  S )Nz<%s (code=%d)>)r(   __name__r%   )r'   s    r)   __repr__zSchedulerEvent.__repr__.   s     4>>#:#:DII"FFFr*   r"   )r,   
__module____qualname____doc__r$   r-   __classcell__r(   s   @r)   r   r   !   s    
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                 V    t         t        |   |       || _        || _        || _        y 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   s    ! !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                 >    t         t        |   |||       || _        y r"   )r#   r   r$   scheduled_run_times)r'   r%   r5   r6   r:   r(   s        r)   r$   zJobSubmissionEvent.__init__I   s     $0vxH#6 r*   r7   r2   s   @r)   r   r   B   s    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
    c                 h    t         t        |   |||       || _        || _        || _        || _        y 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   s4    /fhG"4""r*   )NNNr7   r2   s   @r)   r   r   N   s     [_# #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      sH  T 39 8 /!              ! $'??BXX$%';<>TU!"$:;=ST   11 4FF I[[ 	  0	0 3F	F I`	`	GV G"!~ ! 	7 	7# #r*   