Task #349
closedInicialize default long running tasks
100%
Description
Inicialize default scheduled long running tasks, when application starts up. Some tasks are required by application:
- remove expired identity contracts (core module)
- remove expired user roles (core module)
- execute account managemet, when role starts to be valid (acc module)
- ...
This tasks have to be scheduled automatically, when application starts:
- check existence long running task type schedule - prevent initialize task redundantly (task have to be scheduled only once)
- task could be defined in different modules - use module descriptor to registrate tasks, which have to be initialized (the same as notification templates)
- use cron trigger for task scheduling
Updated by Radek Tomiška over 7 years ago
- Target version changed from Citrine (7.3.0) to Diamond (7.4.0)
Updated by Ondřej Kopr over 7 years ago
- Status changed from New to Needs feedback
- Assignee changed from Ondřej Kopr to Vít Švanda
- % Done changed from 0 to 90
Implemented.
scheduled task isnt initialized by module descriptor but with separate classes by module (abstract class: AbstractScheduledTaskInitializer extends ApplicationListener).
add xsd for xml with tasks. (please check validity).
tests are included.
doc: https://wiki.czechidm.com/7.3/dev/configuration/task-scheduler#initializer
commit: https://github.com/bcvsolutions/CzechIdMng/commit/68e93902c02c1e6cc2d8a9920b6c04afe9113adf
Vitek could you make a review? Thank you.
Updated by Vít Švanda over 7 years ago
- Status changed from Needs feedback to In Progress
- Assignee changed from Vít Švanda to Ondřej Kopr
- I fixed problems with XSD and XML in Core.
- Please add to documentation information how is duplicity task search (only by type = limitation => only one task with same type can be initialized).
- Please move the documentation to correct place (devel).
- Merge this to develop.
Updated by Ondřej Kopr over 7 years ago
- Status changed from In Progress to Resolved
- % Done changed from 90 to 100
I merged this branch into develop + update documentation in devel.
doc: https://wiki.czechidm.com/devel/dev/configuration/task-scheduler#initializer
Thank you for feedback and fix xml validity.