mlox.scheduler
@dataclass
class
QueueEntry:
class
ProcessSchedulerError:
class
ProcessScheduler:
ProcessScheduler( max_processes: int = 2, watchdog_wakeup_sec: int = 1, watchdog_timeout_sec: int = 1500, disable_garbage_collection: bool = False)
queue: Dict[int, QueueEntry]
def
get_next(self) -> int:
Generator that yields indices of idle processes asynchronously. Usage: for idx in scheduler.get_next(): ...