MCPcopy Create free account
hub / github.com/RUC-NLPIR/WebThinker / initializer

Function initializer

scripts/lcb_runner/utils/multiprocess.py:92–95  ·  view source on GitHub ↗

Set maximum amount of memory each worker process can allocate.

(limit)

Source from the content-addressed store, hash-verified

90
91
92def initializer(limit):
93 """Set maximum amount of memory each worker process can allocate."""
94 soft, hard = resource.getrlimit(resource.RLIMIT_AS)
95 resource.setrlimit(resource.RLIMIT_AS, (limit, hard))
96
97
98def run_tasks_in_parallel_iter(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected