yeg
2026-09-01 0fcd0642efdff8d4e0584fa991aaea2178bc932b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.ruoyi.config;
 
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import com.ruoyi.system.service.ITestBackfillService;
 
/** 以较低优先级执行历史补采;实时设备观测由既有调度器优先完成。 */
@Component
public class TestBackfillScheduler
{
    private final ITestBackfillService backfill;
 
    public TestBackfillScheduler(ITestBackfillService backfill)
    {
        this.backfill = backfill;
    }
 
    @Scheduled(fixedDelay = 3000)
    public void reconcileAndBackfill()
    {
        backfill.reconcileNaturalEnd();
        backfill.resumePendingBackfill();
    }
}