There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-cf7b7a6e-25d6-4038-9669-c3b00d5f9910 XWIKI-25260 Open

The scheduler is not shut down when XWiki stops

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-430c2bc9-351b-4c53-88e7-520f478d5bb9 Claude on 11/Oct/26 18:16
 

Update of the proposal after review:

  • After the bounded wait (30 seconds), the scheduler is always shut down without waiting more (shutdown(false)). Waiting for the jobs in shutdown(true) has no limit, and a job fired just before the standby may not be listed as running yet, which could block the stop of XWiki.
  • The wait and the jobs still running after it are logged through the org.xwiki.shutdown logger (INFO while waiting, WARN after the wait), which the default logging configuration shows.
  • A job still running after the wait is not interrupted, as before: it keeps running while the components are disposed.
  • The wait delays the other stop listeners and the dispose of the components by up to 30 seconds.
  • The restore of the jobs at startup checks the stop before each job.
  • The "Scheduler is shutting down" message, which is now logged at every stop, is an INFO instead of a WARN.