o
    %Âif  ã                   @  sD   d dl mZ d dlmZ d dlmZ d dlmZ G dd„ deƒZdS )é    )Úannotations)ÚProtocol)ÚSequence)ÚWorkerControllerc                   @  sŽ   e Zd Zed*dd„ƒZed+dd„ƒZed+dd	„ƒZed+d
d„ƒZd,dd„Zd-dd„Z		d.d/dd„Z
d0dd„Zd1d"d#„Zd2d%d&„Zd3d'd(„Zd)S )4Ú
SchedulingÚreturnúlist[WorkerController]c                 C  ó   d S ©N© ©Úselfr   r   úQ/var/www/html/corbot_env/lib/python3.10/site-packages/xdist/scheduler/protocol.pyÚnodes
   ó   zScheduling.nodesÚboolc                 C  r	   r
   r   r   r   r   r   Úcollection_is_completed   r   z"Scheduling.collection_is_completedc                 C  r	   r
   r   r   r   r   r   Útests_finished   r   zScheduling.tests_finishedc                 C  r	   r
   r   r   r   r   r   Úhas_pending   r   zScheduling.has_pendingÚnoder   ÚNonec                 C  r	   r
   r   ©r   r   r   r   r   Úadd_node   ó    zScheduling.add_nodeÚ
collectionúSequence[str]c                 C  r	   r
   r   )r   r   r   r   r   r   Úadd_node_collection   ó   zScheduling.add_node_collectionr   Ú
item_indexÚintÚdurationÚfloatc                 C  r	   r
   r   )r   r   r   r    r   r   r   Úmark_test_complete   s   zScheduling.mark_test_completeÚitemÚstrc                 C  r	   r
   r   )r   r#   r   r   r   Úmark_test_pending%   r   zScheduling.mark_test_pendingÚindicesúSequence[int]c                 C  r	   r
   r   )r   r   r&   r   r   r   Úremove_pending_tests_from_node'   r   z)Scheduling.remove_pending_tests_from_nodeú
str | Nonec                 C  r	   r
   r   r   r   r   r   Úremove_node-   r   zScheduling.remove_nodec                 C  r	   r
   r   r   r   r   r   Úschedule/   r   zScheduling.scheduleN)r   r   )r   r   )r   r   r   r   )r   r   r   r   r   r   )r   )r   r   r   r   r    r!   r   r   )r#   r$   r   r   )r   r   r&   r'   r   r   )r   r   r   r)   )r   r   )Ú__name__Ú
__module__Ú__qualname__Úpropertyr   r   r   r   r   r   r"   r%   r(   r*   r+   r   r   r   r   r   	   s"    


ü


r   N)Ú
__future__r   Útypingr   r   Úxdist.workermanager   r   r   r   r   r   Ú<module>   s
    