<div dir="ltr">Hi,<br><br>We have been working on Threading related changes on engine to move from java<br>ExecutorServices to JBoss ManagedExecutorServices. The dependency on quartz for<br>running scheduled jobs is being phased out and we are moving to scheduling jobs using<br>JBoss ManagedScheduledExecutorService.<br><br>As far as development goes it should be pretty straight forward.<br><br>Inject the JBoss ManagedScheduledExecutorService<br><br>@Inject<br>@ThreadPools(ThreadPools.ThreadPoolType.EngineScheduledThreadPool)<br>private ManagedScheduledExecutorService executorService;<br><br>and then in PostConstruct you can schedule the job on the executor service using a cron<br>expression.<br><br>@PostConstruct<br>private void init() {<br>       executor.schedule(this::cleanup, new EngineCronTrigger(cronExpression));<br>}<br><br><br>To schedule a job to execute at regular intervals you can use the scheduleWithFixedDelay<br><br>@PostConstruct<br>private void init() {<br>      scheduledExecutorService.scheduleWithFixedDelay(this::cleanExpiredUsersSessions,<br>              1,<br>              1,<br>              TimeUnit.MINUTES);<br>}<br><br>If you have any questions please feel free to contact me or Martin Perina (<a href="mailto:mperina@redhat.com">mperina@redhat.com</a>).<br><br>Thanks<br><br>Ravi</div>