Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/fabric/__pycache__/job_queue.cpython-39.pyc
Ðазад
a {�hX � @ s� d Z ddlZzddlZW n ey2 ddlZY n0 ddlmZ ddlmZ ddl m Z G dd� de�Zdd � Z ed kr�e d� e d� dS ) z� Sliding-window-based job/task queue class (& example of use.) May use ``multiprocessing.Process`` or ``threading.Thread`` objects as queue items, though within Fabric itself only ``Process`` objects are used/supported. � N��Process)�ssh)�settingsc @ sH e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� Zdd � Z dd� Z dS )�JobQueuea9 The goal of this class is to make a queue of processes to run, and go through them running X number at any given time. So if the bubble is 5 start with 5 running and move the bubble of running procs along the queue looking something like this: Start ........................... [~~~~~].................... ___[~~~~~]................. _________[~~~~~]........... __________________[~~~~~].. ____________________[~~~~~] ___________________________ End c C s: g | _ g | _g | _d| _|| _|| _d| _d| _d| _dS )z8 Setup the class to resonable defaults. r FN) �_queued�_running� _completed�_num_of_jobs�_max�_comms_queue� _finished�_closed�_debug)�selfZmax_runningZcomms_queue� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/fabric/job_queue.py�__init__% s zJobQueue.__init__c C s"