question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Configurable task scheduling

See original GitHub issue

Current 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
syaliounecommented, Aug 25, 2022

That request is a duplicate of 1542

1reaction
stevespringettcommented, Mar 21, 2021

Configurable task scheduling would be a good enhancement. Pull requests are highly encouraged.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring Windows Task Scheduler to automatically run a ...
Procedure · From the Start menu, select Administrative Tools > Task Scheduler. · Under Task Scheduler (Local), select Task Scheduler Library and choose...
Read more >
Configure windows task scheduler - ManageEngine
The Windows Scheduler Configuration enables you to schedule any program, task or a script to run at a specified time. You can also...
Read more >
How do I schedule a configuration task? - Entuity
To schedule a configuration management task: · In the Main Menu, click Administration and then click Configuration Management. · This will open ...
Read more >
Scheduling Using Configurable Process Scheduling
In Customizing for Global Available-to-Promise (Global ATP), you have assigned a scheduling schema and an activity type to a condition type list. Configurable...
Read more >
26. Task Execution and Scheduling - Spring
The most powerful feature of Spring's task namespace is the support for configuring tasks to be scheduled within a Spring Application Context. This...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found