
    &`i                     (   d dl mZ d dlmZmZmZ d dlmZmZm	Z	 d dl
mZ d dlmZ erc ed           G d d	e                      Z ed           G d
 dee                      Z ed           G d de                      ZdS dZdZdZdS )    )Enum)AnyDictOptional)PYDANTIC_INSTALLED	BaseModelField)	JobStatus)	PublicAPIbeta)	stabilityc                       e Zd ZU dZ edd          Zeed<    edd          Zeed<    edd          Z	eed	<   d
S )
DriverInfozFA class for recording information about the driver related to the job..zThe id of the driverdescriptionidz4The IP address of the node the driver is running on.node_ip_addressz2The PID of the worker process the driver is using.pidN)
__name__
__module____qualname____doc__r	   r   str__annotations__r   r        }/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/ray/dashboard/modules/job/pydantic_models.pyr   r      s         TT%)?@@@C@@@$uS 
  
  
 	
 	
 	
 5Q
 
 
S 	
 	
 	
 	
 	
r   r   c                       e Zd ZdZdZdZdS )JobTypezAn enumeration for describing the different job types.

        NOTE:
            This field is still experimental and may change in the future.
        
SUBMISSIONDRIVERN)r   r   r   r   r    r!   r   r   r   r   r      s$        	 	 "
r   r   c                      e Zd ZU dZ edd          Zeed<    edd          Ze	e
         ed<    edd	          Ze	e
         ed
<    edd          Ze	e         ed<    edd          Zeed<    edd          Ze
ed<    edd          Ze	e
         ed<    edd          Ze	e
         ed<    edd          Ze	e         ed<    edd          Ze	e         ed<    edd          Ze	ee
e
f                  ed<    edd          Ze	ee
ef                  ed<    edd          Ze	e
         ed<    edd          Ze	e
         ed <    edd!          Ze	e         ed"<   dS )#
JobDetailszR
        Job data with extra details about its driver and its submission.
        .zThe type of job.r   typeNzThe job ID. An ID that is created for every job that is launched in Ray. This can be used to fetch data about jobs using Ray Core APIs.job_idzA submission ID is an ID created for every job submitted viathe Ray Jobs API. It can be used to fetch data about jobs using the Ray Jobs API.submission_idzThe driver related to this job. For jobs submitted via the Ray Jobs API, it is the last driver launched by that job submission, or None if there is no driver.driver_infozThe status of the job.statusz$The entrypoint command for this job.
entrypointz/A message describing the status in more detail.messagez$Internal error or user script error.
error_typez:The time when the job was started. A Unix timestamp in ms.
start_timezJThe time when the job moved into a terminal state. A Unix timestamp in ms.end_timez-Arbitrary user-provided metadata for the job.metadataz$The runtime environment for the job.runtime_envzVThe HTTP address of the JobAgent on the node the job entrypoint command is running on.driver_agent_http_addressz<The ID of the node the job entrypoint command is running on.driver_node_idzgThe driver process exit code after the driver executed. Return None if driver doesn't finish executing.driver_exit_code)r   r   r   r   r	   r$   r   r   r%   r   r   r&   r'   r   r(   r
   r)   r*   r+   r,   intr-   r.   r   r/   r   r0   r1   r2   r   r   r   r#   r#   %   s        	 	 c/ABBBgBBB %!
 !
 !
 	
 	
 	
 (-uG(
 (
 (
x} 	
 	
 	
 -2E--
 -
 -
Xj) 	
 	
 	
 "E#3KLLL	LLL%1WXXX
CXXX!&O"
 "
 "
# 	
 	
 	
 %*ED%
 %
 %

HSM 	
 	
 	
 %*ET%
 %
 %

HSM 	
 	
 	
 #(%&#
 #
 #
(3- 	
 	
 	

 .3UM.
 .
 .
(4S>* 	
 	
 	
 16D1
 1
 1
Xd38n- 	
 	
 	
 49504
 4
 4
!8C= 	
 	
 	

 ).V)
 )
 )
 	
 	
 	
 +0%>+
 +
 +
(3- 	
 	
 	
 	
 	
r   r#   N)enumr   typingr   r   r   ray._common.pydantic_compatr   r   r	    ray.dashboard.modules.job.commonr
   ray.util.annotationsr   r   r   r   r#   r   r   r   <module>r9      sx         & & & & & & & & & & L L L L L L L L L L 6 6 6 6 6 6 * * * * * *  eY   	
 	
 	
 	
 	
Y 	
 	
 ! 	
 Y   
 
 
 
 
#t 
 
 ! 
 Y   C
 C
 C
 C
 C
Y C
 C
 ! C
 C
 C
L JGJJJr   