改为自动周期采集并优化首页导航
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
from app.agent.scheduler import build_scheduler
|
||||
from app.core.config import Settings
|
||||
|
||||
|
||||
def test_scheduler_runs_on_interval() -> None:
|
||||
# Agent默认按固定间隔自动运行,避免产品依赖用户手动触发。
|
||||
scheduler = build_scheduler(Settings(agent_interval_minutes=30))
|
||||
job = scheduler.get_job("continuous-intelligence")
|
||||
|
||||
assert job is not None
|
||||
assert job.trigger.interval.total_seconds() == 1800
|
||||
assert job.max_instances == 1
|
||||
Reference in New Issue
Block a user