0

同一个 Class 文件中有 10 个这种类型的调度程序:

@Startup
@Singleton
@AccessTimeout(value = 1, unit = TimeUnit.HOURS)
public class MeowPoller {

    @Schedule(hour = "02", minute = "00", persistent = false)
    public void runFetchApplications() {

当某个工作卡住了 3 个小时时,下一个工作直到该工作完成才会执行。

系统不断给予:

2020-01-20 01:02:00,001 WARN  [org.jboss.as.ejb3.timer] (EJB default - 6) WFLYEJB0043: A previous execution of 
timer [id=459875b7-5346-40c1-a9a0-f36dec8ef53d timedObjectId=Meow-1.6-SNAPSHOT.Meow-1.6-SNAPSHOT.MeowPoller 
auto-timer?:true persistent?:false timerService=org.jboss.as.ejb3.timerservice.TimerServiceImpl@7ffe6c6a 
initialExpiration=null intervalDuration(in milli sec)=0 nextExpiration=Mon Jan 20 01:02:00 CET 2020 timerState=IN_TIMEOUT 
info=null] is still in progress, skipping this overlapping scheduled execution at: Mon Jan 20 01:02:00 CET 2020.
4

0 回答 0