-
Notifications
You must be signed in to change notification settings - Fork 22
Scheduled tasks
jcomedouteau edited this page Mar 31, 2022
·
5 revisions
- 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.
- nothing scheduled
- nothing scheduled
- 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
- nothing scheduled