Skip to content

fix: getInputData bulk query with duplicate jobIDs#8707

Merged
fstagni merged 1 commit into
DIRACGrid:integrationfrom
chrisburr:fix/getinputdata-duplicate-jobids
Jul 13, 2026
Merged

fix: getInputData bulk query with duplicate jobIDs#8707
fstagni merged 1 commit into
DIRACGrid:integrationfrom
chrisburr:fix/getinputdata-duplicate-jobids

Conversation

@chrisburr

Copy link
Copy Markdown
Member

BEGINRELEASENOTES

*WorkloadManagement
FIX: getInputData bulk query with duplicate jobIDs

ENDRELEASENOTES

The bulk branch of JobDB.getInputData counted SQL placeholders from the
raw jobID list (including duplicates) but bound the arguments from a set
comprehension (deduplicated). When the input list contained a repeated
jobID this produced more placeholders than arguments, which MySQLdb
reports as "tuple index out of range".

Derive both the placeholders and the bound arguments from the same
deduplicated set so their counts always match.
@chrisburr
chrisburr marked this pull request as ready for review July 13, 2026 07:18
@fstagni
fstagni merged commit 5db75fe into DIRACGrid:integration Jul 13, 2026
23 checks passed
@DIRACGridBot DIRACGridBot added the sweep:ignore Prevent sweeping from being ran for this PR label Jul 13, 2026
@chrisburr
chrisburr deleted the fix/getinputdata-duplicate-jobids branch July 13, 2026 08:03
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