Details
-
Task
-
Status: Closed
-
Should
-
Resolution: Fixed
-
Platform 1.10.0
-
None
-
Low
Description
The ConceptServiceImpl.updateConceptIndexes() method attempts to prevent the task from being scheduled if it already scheduled. We should make this an api method in the SchedulerService so that the pattern doesn't have to be duplicated by other services/devs/modules.
Create method SchedulerService.scheduleIfNotExists(TaskDefinition)
Create a unit test to verify this method is working.
ABKTODO: this whole pattern should be moved into the scheduler, providing a call like scheduleThisIfNotRunning()
File: /api/src/main/java/org/openmrs/api/impl/ConceptServiceImpl.java
Line: 1819
Gliffy Diagrams
Attachments
Issue Links
- relates to
-
TRUNK-324 Go through the TODO items code and create tickets out of them
-
- Ready for Work
-
-
TRUNK-6087 COPY: Go through the TODO items code and create tickets out of them
-
- Needs Assessment
-
-
TRUNK-6108 COPY: Go through the TODO items code and create tickets out of them
-
- Needs Assessment
-