Skip to content

Comments

fix: cache SandboxMetadataDB instance instead of recreating per job#8457

Merged
aldbr merged 1 commit intoDIRACGrid:integrationfrom
chrisburr:fix/cache-sandbox-metadata-db
Feb 16, 2026
Merged

fix: cache SandboxMetadataDB instance instead of recreating per job#8457
aldbr merged 1 commit intoDIRACGrid:integrationfrom
chrisburr:fix/cache-sandbox-metadata-db

Conversation

@chrisburr
Copy link
Member

  • Cache SandboxMetadataDB in JobSanity.initializeOptimizer() and JobCleaningAgent.initialize() instead of creating a new instance on every call
  • Each instantiation was triggering a config lookup, connection pool ping, SHOW TABLES query, and table schema check unnecessarily

BEGINRELEASENOTES
*WorkloadManagement
FIX: cache SandboxMetadataDB instance in JobSanity and JobCleaningAgent to avoid unnecessary DB overhead per job
ENDRELEASENOTES

@chrisburr chrisburr marked this pull request as ready for review February 16, 2026 15:34
@chrisburr chrisburr force-pushed the fix/cache-sandbox-metadata-db branch from 8e78e1c to 488e5c7 Compare February 16, 2026 21:39
@aldbr aldbr merged commit 0309aba into DIRACGrid:integration Feb 16, 2026
32 of 33 checks passed
@DIRACGridBot DIRACGridBot added the sweep:ignore Prevent sweeping from being ran for this PR label Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sweep:ignore Prevent sweeping from being ran for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants