update daily idle cron

This commit is contained in:
Donghuang 2021-09-03 19:06:33 +08:00
parent 85d31e690c
commit aeb38bf2b6
2 changed files with 4 additions and 2 deletions

View File

@ -25,7 +25,7 @@
and account != 'SYSTEM'
group by tenant_id, account
having
<![CDATA[ call_time < now() - interval 15 minute ]]>
<![CDATA[ call_time < now() - interval 1 hour ]]>
) cdr
on a.tenant_id = cdr.tenant_id

View File

@ -138,7 +138,9 @@ public class AgentStatusScheduleServiceImpl implements AgentStatusScheduleServic
agentStatusMapper.acwCleanup();
}
@Scheduled(cron = "${yo.state.agent.daily-idle-detail.cron:0 */2 9-12,14-19 * * *}")
@Scheduled(cron = "0 */2 10-12,15-19 * * *")
@Scheduled(cron = "0 15-59/2 9,14 * * *")
@Scheduled(cron = "0 0-45/2 12,19 * * *")
public void agentDailyIdleDetailGenerate() {
agentDailyIdleDetailMapper.generate();
agentDailyIdleDetailMapper.cleanup();