multiproc_executor
¶
Classes¶
fastvideo.worker.multiproc_executor.MultiprocExecutor
¶
MultiprocExecutor(fastvideo_args: FastVideoArgs)
Bases: Executor
Source code in fastvideo/worker/executor.py
Functions¶
fastvideo.worker.multiproc_executor.MultiprocExecutor.__del__
¶
fastvideo.worker.multiproc_executor.MultiprocExecutor.__enter__
¶
fastvideo.worker.multiproc_executor.MultiprocExecutor.__exit__
¶
fastvideo.worker.multiproc_executor.MultiprocExecutor.shutdown
¶
Properly shut down the executor and its workers
Source code in fastvideo/worker/multiproc_executor.py
fastvideo.worker.multiproc_executor.UnreadyWorkerProcHandle
dataclass
¶
UnreadyWorkerProcHandle(proc: BaseProcess, rank: int, pipe: Connection, ready_pipe: Connection)
WorkerProcess handle before READY.
fastvideo.worker.multiproc_executor.WorkerMultiprocProc
¶
WorkerMultiprocProc(fastvideo_args: FastVideoArgs, local_rank: int, rank: int, distributed_init_method: str, pipe: Connection)
Adapter that runs one Worker in busy loop.
Source code in fastvideo/worker/multiproc_executor.py
Functions¶
fastvideo.worker.multiproc_executor.WorkerMultiprocProc.worker_busy_loop
¶
Main busy loop for Multiprocessing Workers
Source code in fastvideo/worker/multiproc_executor.py
fastvideo.worker.multiproc_executor.WorkerMultiprocProc.worker_main
staticmethod
¶
Worker initialization and execution loops. This runs a background process
Source code in fastvideo/worker/multiproc_executor.py
Functions¶
fastvideo.worker.multiproc_executor.set_multiproc_executor_envs
¶
Set up environment variables that should be used when there are workers in a multiprocessing environment. This should be called by the parent process before worker processes are created