mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 23:08:32 +08:00
Fix for RLIMIT patch (#12882)
Implement new soft limit introduced by https://github.com/ray-project/ray/pull/12853.
This commit is contained in:
@@ -613,7 +613,7 @@ def init(
|
||||
logger.debug("Automatically increasing RLIMIT_NOFILE to max "
|
||||
"value of {}".format(hard))
|
||||
try:
|
||||
resource.setrlimit(resource.RLIMIT_NOFILE, (hard, hard))
|
||||
resource.setrlimit(resource.RLIMIT_NOFILE, (soft, hard))
|
||||
except ValueError:
|
||||
logger.debug("Failed to raise limit.")
|
||||
soft, _ = resource.getrlimit(resource.RLIMIT_NOFILE)
|
||||
|
||||
Reference in New Issue
Block a user