Configurable task scheduling
See original GitHub issueCurrent Behavior:
In our DT instance the portfolio metrics update task takes approx. 3.5 hours to complete (and it was even worse - approx. 9 hours at version 3.7.1) and since it’s scheduled to execute every hour it’s basically running all the time, consuming especially CPU resources.
In the past, when running the executable WAR variant I could easily patch the org.dependencytrack.tasks.TaskScheduler
class where I simply increased the interval for this task, for example here:
https://github.com/DependencyTrack/dependency-track/blob/master/src/main/java/org/dependencytrack/tasks/TaskScheduler.java#L71
However with the now preferred container image variant this isn’t that easy.
Proposed Behavior:
Could you please make at least the execution interval of the most demanding tasks user-configurable (via properties / environment variables)?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (5 by maintainers)
Top GitHub Comments
That request is a duplicate of 1542
Configurable task scheduling would be a good enhancement. Pull requests are highly encouraged.