
    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          Z G d de          Z G d de          Z G d de          ZdS ))	EVENT_ALLEVENT_ALL_JOBS_REMOVEDEVENT_EXECUTOR_ADDEDEVENT_EXECUTOR_REMOVEDEVENT_JOBSTORE_ADDEDEVENT_JOBSTORE_REMOVEDEVENT_JOB_ADDEDEVENT_JOB_ERROREVENT_JOB_EXECUTEDEVENT_JOB_MAX_INSTANCESEVENT_JOB_MISSEDEVENT_JOB_MODIFIEDEVENT_JOB_REMOVEDEVENT_JOB_SUBMITTEDEVENT_SCHEDULER_PAUSEDEVENT_SCHEDULER_RESUMEDEVENT_SCHEDULER_SHUTDOWNEVENT_SCHEDULER_STARTEDJobEventJobExecutionEventJobSubmissionEventSchedulerEvent                   @         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                 d    t                                                       || _        || _        d S N)super__init__codealias)selfr&   r'   	__class__s      Y/home/ubuntu/.hermes/hermes-agent/venv/lib/python3.11/site-packages/apscheduler/events.pyr%   zSchedulerEvent.__init__I   s+    	


    c                     d| j          dS )Nz<self.__class__.__name__ (code=z)>)r&   )r(   s    r*   __repr__zSchedulerEvent.__repr__N   s    >>>>>r+   r#   )__name__
__module____qualname____doc__r%   r-   __classcell__r)   s   @r*   r   r   A   sV              
? ? ? ? ? ? ?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&   job_idjobstore)r(   r&   r6   r7   r)   s       r*   r%   zJobEvent.__init__[   s4    	 r+   r.   r/   r0   r1   r%   r2   r3   s   @r*   r   r   R   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                 \    t                                          |||           || _        d S r#   )r$   r%   scheduled_run_times)r(   r&   r6   r7   r;   r)   s        r*   r%   zJobSubmissionEvent.__init__i   s-    vx000#6   r+   r8   r3   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                                          |||           || _        || _        || _        || _        d S 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   sB     	vx000"4""r+   )NNNr8   r3   s   @r*   r   r   n   sR          # # # # # # # # # #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      s  4 37 6 /                	
     	 
       ! 
*? ? ? ? ? ? ? ?"! ! ! ! !~ ! ! ! 	7 	7 	7 	7 	7 	7 	7 	7# # # # # # # # # #r+   