JBOSS. Timer pre-execution continues, timer state is IN_TIMEOUT

I am using JBOSS EAP 6.4. I have a graph of some schedulers in my ScedulerBean using the EJB @Srate annotation as follows. Here ShedulerBean depends on StartupBean.

@Singleton
@DependsOn("StartupBean")
public class SchedulerBean {
    private Logger logger = LoggerFactory.getLogger(SchedulerBean.class);
    private SchedulerInterface schedulerInterface;
    @PostConstruct
    public void initialize() {
        // some initialization
    }
    @Schedule(second = "1/1", minute = "*", hour = "*",persistent = false)
    public void runSchedulers() {
        logger.info("EJB scheduler pulse start at : " + new Date());
        try {
            schedulerInterface.pulseEverySecond();
            logger.info("EJB scheduler pulse end at : " + new Date());
        } catch (Exception e) {
            logger.error("Error in EJB scheduling : ", e);
        }
    }

}

      

But I get the following warning repeatedly while deploying JBOSS. Can anyone tell me a way to solve this problem?

The previous execution of the [ShedularBean] timer is still in progress, skipping this overlapping scheduled execution at: [Timestamp] as timer state IN_TIMEOUT

+3


source to share


1 answer


Since you are executing the task every second, this means that the previous scheduled task (the current second-1) is still running when the current task is scheduled.

Hence, jboss tells you that it will skip this execution.



Refer to this for more information: https://issues.jboss.org/browse/AS7-3119

+2


source







All Articles