Project

General

Profile

Actions

Task #349

closed

Inicialize default long running tasks

Added by Radek Tomiška about 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Ondřej Kopr
Category:
Scheduler
Target version:
Start date:
03/30/2017
Due date:
% Done:

100%

Estimated time:
5.00 h
Owner:

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

Actions #1

Updated by Radek Tomiška almost 7 years ago

  • Target version changed from Citrine (7.3.0) to Diamond (7.4.0)
Actions #2

Updated by Ondřej Kopr over 6 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.

Actions #3

Updated by Vít Švanda over 6 years ago

  • Status changed from Needs feedback to In Progress
  • Assignee changed from Vít Švanda to Ondřej Kopr
Looks and works great.
  • 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.
Actions #4

Updated by Ondřej Kopr over 6 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.

Actions #5

Updated by Ondřej Kopr over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF