
    Owg                     
   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      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	EVENT_ALL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                 >    t         |           || _        || _        y N)super__init__codealias)selfr&   r'   	__class__s      I/var/www/horilla/myenv/lib/python3.12/site-packages/apscheduler/events.pyr%   zSchedulerEvent.__init__I   s    	
    c                 L    d| j                   j                  | j                  fz  S )Nz<%s (code=%d)>)r)   __name__r&   )r(   s    r*   __repr__zSchedulerEvent.__repr__N   s     4>>#:#:DII"FFFr+   r#   )r-   
__module____qualname____doc__r%   r.   __classcell__r)   s   @r*   r   r   A   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                 N    t         |   |       || _        || _        || _        y r#   )r$   r%   r&   job_idjobstore)r(   r&   r6   r7   r)   s       r*   r%   zJobEvent.__init__[   s%    	 r+   r-   r/   r0   r1   r%   r2   r3   s   @r*   r   r   R   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                 6    t         |   |||       || _        y r#   )r$   r%   scheduled_run_times)r(   r&   r6   r7   r;   r)   s        r*   r%   zJobSubmissionEvent.__init__i   s    vx0#6 r+   r8   r3   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                 `    t         |   |||       || _        || _        || _        || _        y r#   )r$   r%   scheduled_run_timeretval	exception	traceback)	r(   r&   r6   r7   r>   r?   r@   rA   r)   s	           r*   r%   zJobExecutionEvent.__init__x   s3     	vx0"4""r+   )NNNr8   r3   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   r   r   r   r   r    r+   r*   <module>rE      sL  4 37 6 /                	
     	 
       ! 
*G G"!~ ! 	7 	7# #r+   