/opt/support/venv/lib/python3.13/site-packages/cproc/__pycache__
Edit: /opt/support/venv/lib/python3.13/site-packages/cproc/__pycache__/process.cpython-313.pyc (10149B)
i% S r SSKrSSKrSSKJr SSKJr SSKrSSK r
SSKJr " S S5 r
" S S
\R 5 rg)z&cproc module process execution objects N) cpu_count)Callable )ProcMonitorc
\ rS rSrSrSrSSS\R \R 4S\ \
- S- S\\ \ 4 S- S\ S- S\ \R - S \
S- S
S4S jjrSrg)
ProcLimit ai Contains load limits for cproc.Proc if used as the lim= arg
Note:
The grace argument could be useful for subprocesses which require a TCP
session, such as rsync, to avoid a timeout caused by the process
sleeping for too long. ex: ProcLimit(grace=(5, 1))
Args:
value (int | float | None): maximum sever load. If set to
None, it'll default to either the number of cores determined from
multiprocessing.cpu_count(), or 1.0 if running on a VZ VPS
grace (tuple[int, int] | None): If set, it should be a 2-item
tuple of ints > 0. The first item is the number of seconds
to sleep if the server is overloaded, and the second is how
long to allow execution anyways once the sleep expires
max_mem (int | None): If set, the process will be killed if it uses
more than this amount of memory, in MiB
mem_signal (Signal | int): kill signal to send the process if it goes
over max_mem. Defaults to ``signal.SIGTERM``
mem_log_func (Callable | None): log function to call if a process is
killed for being over memory. Defaults to ``logging.error``
cprocNvaluegracemax_mem
mem_signalmem_log_funcreturnc U( a US- OS U l X@l XPl Uc/ [ R R 5 ( a SO [
5 nXl X l g )Ni g ?) r
r r radsvzis_vpsr r r )selfr r r
r r s ?/opt/support/venv/lib/python3.13/site-packages/cproc/process.py__init__ProcLimit.__init__&