fix: 给 soffice 加超时(120s)机制、worker 自动回收超时 running 任务,避免任务挂死阻塞队列
This commit is contained in:
1 parent
1d72018eb7
commit
0eb577df1a
11 files changed
+379
-88
No files matched your search
@@ -43,6 +43,10 @@ services:
|
||||
- KB_STORAGE_ROOT=${KB_STORAGE_ROOT:-/app/data/kb}
|
||||
- KB_TASK_EXECUTION_MODE=${KB_TASK_EXECUTION_MODE:-worker}
|
||||
- KB_WORKER_POLL_SECONDS=${KB_WORKER_POLL_SECONDS:-2}
|
||||
# kb-worker 自动回收长时间 running 的任务(秒)
|
||||
- KB_JOB_RUNNING_TIMEOUT_SECONDS=${KB_JOB_RUNNING_TIMEOUT_SECONDS:-300}
|
||||
# LibreOffice 单次格式转换超时(秒)
|
||||
- EDKB_SOFFICE_TIMEOUT_SEC=${EDKB_SOFFICE_TIMEOUT_SEC:-120}
|
||||
|
||||
# 允许容器访问宿主机服务 (如数据库)
|
||||
extra_hosts:
|
||||
@@ -88,6 +92,10 @@ services:
|
||||
- KB_STORAGE_ROOT=${KB_STORAGE_ROOT:-/app/data/kb}
|
||||
- KB_TASK_EXECUTION_MODE=${KB_TASK_EXECUTION_MODE:-worker}
|
||||
- KB_WORKER_POLL_SECONDS=${KB_WORKER_POLL_SECONDS:-2}
|
||||
# kb-worker 自动回收长时间 running 的任务(秒)
|
||||
- KB_JOB_RUNNING_TIMEOUT_SECONDS=${KB_JOB_RUNNING_TIMEOUT_SECONDS:-300}
|
||||
# LibreOffice 单次格式转换超时(秒)
|
||||
- EDKB_SOFFICE_TIMEOUT_SEC=${EDKB_SOFFICE_TIMEOUT_SEC:-120}
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
volumes:
|
||||
|
||||
Reference in new issue
Block a user