Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -37,7 +37,7 @@ def restore():
|
|
| 37 |
print("🔍 [Restore] Searching for latest backup...")
|
| 38 |
files = api.list_repo_files(repo_id=repo_id, repo_type="dataset", token=token)
|
| 39 |
now = datetime.now()
|
| 40 |
-
for i in range(
|
| 41 |
day = (now - timedelta(days=i)).strftime("%Y-%m-%d")
|
| 42 |
name = f"backup_{day}.tar.gz"
|
| 43 |
if name in files:
|
|
@@ -116,6 +116,10 @@ RUN mkdir -p /root/.openclaw && \
|
|
| 116 |
},
|
| 117 |
"agents": {
|
| 118 |
"defaults": {
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
"model": {
|
| 120 |
"primary": "thirdparty/PLACEHOLDER_MODEL_ID"
|
| 121 |
}
|
|
|
|
| 37 |
print("🔍 [Restore] Searching for latest backup...")
|
| 38 |
files = api.list_repo_files(repo_id=repo_id, repo_type="dataset", token=token)
|
| 39 |
now = datetime.now()
|
| 40 |
+
for i in range(7):
|
| 41 |
day = (now - timedelta(days=i)).strftime("%Y-%m-%d")
|
| 42 |
name = f"backup_{day}.tar.gz"
|
| 43 |
if name in files:
|
|
|
|
| 116 |
},
|
| 117 |
"agents": {
|
| 118 |
"defaults": {
|
| 119 |
+
"timeoutSeconds": 300, // 整体任务超时,建议 300(5分钟)或更高
|
| 120 |
+
"llm": {
|
| 121 |
+
"idleTimeoutSeconds": 300 // LLM 空闲/响应超时,针对本地慢模型特别重要
|
| 122 |
+
}
|
| 123 |
"model": {
|
| 124 |
"primary": "thirdparty/PLACEHOLDER_MODEL_ID"
|
| 125 |
}
|