Skip to content

Commit 095fa6e

Browse files
committed
feat: リソース制限の設定に失敗した場合のエラーメッセージを追加し、バージョンを0.1.4に更新
1 parent fb480f6 commit 095fa6e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

adf_core_python/launcher.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@ def __init__(
1212
self,
1313
launcher_config_file: str,
1414
) -> None:
15-
resource.setrlimit(resource.RLIMIT_NOFILE, (8192, 1048576))
15+
try:
16+
resource.setrlimit(resource.RLIMIT_NOFILE, (8192, 1048576))
17+
except Exception as e:
18+
print(
19+
f"Failed to set resource limit: {e}. "
20+
"This may cause issues with the number of open files."
21+
)
1622

1723
self.launcher_config = Config(launcher_config_file)
1824

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "adf_core_python"
3-
version = "0.1.3"
3+
version = "0.1.4"
44
description = "Agent Development Framework for Python"
55
authors = [
66
"Haruki Uehara <[email protected]>",

0 commit comments

Comments
 (0)