o
    i                     @   s   d Z d 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B eB eB eB eB eB e	B e
B eB eB eB eB eB eB eB eB ZG dd dZG dd deZG dd deZG d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                       s*   e Zd ZdZd fdd	Zdd Z  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                    s   t    || _|| _d S N)super__init__codealias)selfr#   r$   	__class__ I/home/app/Keep/.python/lib/python3.10/site-packages/apscheduler/events.pyr"   I   s   

zSchedulerEvent.__init__c                 C   s   d| j  dS )Nz<self.__class__.__name__ (code=z)>)r#   )r%   r(   r(   r)   __repr__N   s   zSchedulerEvent.__repr__r    )__name__
__module____qualname____doc__r"   r*   __classcell__r(   r(   r&   r)   r   A   s    r   c                           e Zd ZdZ fddZ  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                    s"   t  | || _|| _|| _d S r    )r!   r"   r#   job_idjobstore)r%   r#   r1   r2   r&   r(   r)   r"   [   s   
zJobEvent.__init__r+   r,   r-   r.   r"   r/   r(   r(   r&   r)   r   R   s    r   c                       r0   )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                    s   t  ||| || _d S r    )r!   r"   scheduled_run_times)r%   r#   r1   r2   r4   r&   r(   r)   r"   i   s   
zJobSubmissionEvent.__init__r3   r(   r(   r&   r)   r   b   s    r   c                       s(   e Zd ZdZ			d fdd	Z  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                    s,   t  ||| || _|| _|| _|| _d S r    )r!   r"   scheduled_run_timeretval	exception	traceback)r%   r#   r1   r2   r5   r6   r7   r8   r&   r(   r)   r"   x   s
   

zJobExecutionEvent.__init__)NNNr3   r(   r(   r&   r)   r   n   s    r   N)__all__r   Z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(   r(   r)   <module>   sp    	
