mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
test: set maximum RLIMIT_NPROC
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -9,3 +9,6 @@ else:
|
||||
import resource
|
||||
|
||||
resource.setrlimit(resource.RLIMIT_NOFILE, (2048, 2048))
|
||||
|
||||
nproc_soft, nproc_hard = resource.getrlimit(resource.RLIMIT_NPROC)
|
||||
resource.setrlimit(resource.RLIMIT_NPROC, (nproc_hard, nproc_hard))
|
||||
|
||||
Reference in New Issue
Block a user