feat: 悬挂学习会话惰性收敛与定时兜底
This commit is contained in:
@@ -25,6 +25,8 @@ mybatis-plus:
|
||||
configuration:
|
||||
# 使用 Slf4j 输出 SQL:由各环境的 logging.level 决定是否打印,生产默认不打印
|
||||
log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
|
||||
# 显式声明下划线转驼峰:实体与聚合结果都依赖它,不要依赖框架默认值
|
||||
map-underscore-to-camel-case: true
|
||||
|
||||
############## Sa-Token 配置 (文档: https://sa-token.cc) ##############
|
||||
sa-token:
|
||||
@@ -56,4 +58,18 @@ management:
|
||||
lpt:
|
||||
ai-service:
|
||||
url: http://localhost:5199
|
||||
timeout-seconds: 600
|
||||
timeout-seconds: 600
|
||||
# 学习会话的时间口径(会话-04):三类阈值集中在这里,改口径不需要改代码
|
||||
study-time:
|
||||
# 番茄钟长度(分钟)
|
||||
work-duration-minutes: 25
|
||||
# 遗忘判定阈值(分钟):超过该时长无操作按「忘了点暂停/结束」只结算一个番茄钟
|
||||
forget-threshold-minutes: 50
|
||||
# 硬兜底阈值(分钟):进行中的会话超过该时长仍未结算,由服务端强制收敛
|
||||
force-pause-minutes: 120
|
||||
# 有效学习时间下限(秒)
|
||||
min-effective-time-seconds: 600
|
||||
# 低频定时收敛扫描间隔(毫秒)
|
||||
scan-interval-ms: 600000
|
||||
# 是否开启低频定时收敛
|
||||
scan-enabled: true
|
||||
Reference in New Issue
Block a user