Skip to content

HPO job count: bind name matches its parameter key - #843

Merged
tmaeno merged 1 commit into
PanDAWMS:masterfrom
wenaus:fix-hpo-taskid-bind
Oct 30, 2026
Merged

tmaeno merged 1 commit into
PanDAWMS:masterfrom
wenaus:fix-hpo-taskid-bind

Conversation

@wenaus

@wenaus wenaus commented Oct 30, 2026

Copy link
Copy Markdown
Member

The maximum-HPO-jobs check in _check_task_with_unprocessed_inputs binds :taskid in its SQL and passes :taskID in its parameters. Oracle matches bind names without regard to case; the PostgreSQL cursor matches them exactly, so on PostgreSQL the query raises a missing-parameter KeyError for any HPO task with a maximum number of jobs. The parameter key now matches the bind.

Found by a scan for bind names that differ from their keys only in case, after the same mismatch in updateEventRanges failed on every call on the ePIC server.

🤖 Generated with Claude Code

The maximum-HPO-jobs check in _check_task_with_unprocessed_inputs binds
:taskid in its SQL and passes :taskID in its parameters. Oracle matches
bind names without regard to case; the PostgreSQL cursor matches them
exactly, so the query raises a missing-parameter KeyError there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 30, 2026 10:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the HPO job-count SQL bind-name correction.

No open issues 🎉

What changed in this PR

Fixes a PostgreSQL missing-parameter KeyError in the maximum-HPO-jobs check by aligning the parameter key with the SQL bind name.

Changes:

  • Changes :taskID to :taskid in _check_task_with_unprocessed_inputs, preserving Oracle compatibility.
File Description
pandaserver/​taskbuffer/​db_proxy_mods/​task_complex_module.py Matches the HPO job-count parameter key to the SQL bind name.

Review effort: Balanced

@tmaeno
tmaeno merged commit 6450fae into PanDAWMS:master Oct 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants