Repository navigation
Conversation
…nd load every 60s by default
chrisburr
force-pushed
the
fix/optimizationmind-loadjobs-set
branch
from
November 14, 2026 22:12
0b57801 to
146cb81
Compare
chrisburr
force-pushed
the
fix/optimizationmind-loadjobs-set
branch
from
November 14, 2026 23:25
245ced5 to
27bd6fd
Compare
…e fixture returns pylint does not know that gConfig.getValue is replaced with a mock in the test, and reports call_count as an unknown member.
chrisburr
marked this pull request as ready for review
November 16, 2026 14:44
chrisburr
requested review from
andresailer,
atsareg and
fstagni
as code owners
November 16, 2026 14:44
fstagni
previously approved these changes
Nov 17, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes for the OptimizationMind found while ~1M jobs were stuck in Received at LHCb (Received → Waiting fell to ~3 jobs/s):
__loadJobs: checking each loaded job against thegetTaskIds()list took ~82% of the Mind's CPU.LoadJobPeriodnow defaults to 60 s (it was 60 s for the first load, then 300 s, which capped a backlog at ~33 jobs/s).MaxHoldTimefor JobScheduling: the hold time of a job held repeatedly doubles up to this value. It defaults toHoldTime, so nothing changes unless it is set.Registry.getHostnameForDN, and insert jobs into the TaskQueueDB from the manifest the Mind already has instead of parsing the JDL again.BEGINRELEASENOTES
*WorkloadManagement
FIX: OptimizationMind no longer spends most of its CPU checking whether jobs are already known when loading jobs from the JobDB
FIX: OptimizationMind never runs two job loads at once
CHANGE: OptimizationMind loads jobs from the JobDB every 60s by default (LoadJobPeriod)
NEW: JobScheduling MaxHoldTime option to back off exponentially when the same job is held repeatedly
FIX: OptimizationMind no longer reads and parses the job JDL again when inserting a job into the TaskQueueDB
*Configuration
FIX: Registry.getHostnameForDN is cached, as getUsernameForDN already was
ENDRELEASENOTES