Skip to content

Scheduled tasks

jcomedouteau edited this page Mar 31, 2022 · 5 revisions

Scheduled tasks

MS Users

  • everyday: deletes events older than 1 year from the database (USERS.EVENTS)
  • @Scheduled(fixedDelay = 30000) private void keepConnectionAlive() with AsyncTaskApiController

This task allows to push updates to the front for every user. For example, when an import is running, the import progression will be automatically updated in the front view for every connected user.

How does it work ?

We use SseEmitter that allows to keep a connection alive between the front and the back so that the back can push events regularly. When the connection closes, it is detected by the back and a new connection is set up if the user is still connected.

MS Studies

  • nothing scheduled

MS Import

  • nothing scheduled

MS Datasets

  • at "0 0 6 * * *" (every day at 6:00) the search indexation runs (Solr: feed all datasets into Lucene search index)
  • at "0 0 6 * * *" (every day at 6:00) the DICOMWeb examinationIdToStudyInstanceUID cache is cleared

MS Preclinical

  • nothing scheduled
Clone this wiki locally