Skip to content

htcondor: compatibility for new condor python api version >= 25#298

Merged
mightqxc merged 2 commits intomasterfrom
flin
Jan 28, 2026
Merged

htcondor: compatibility for new condor python api version >= 25#298
mightqxc merged 2 commits intomasterfrom
flin

Conversation

@mightqxc
Copy link
Collaborator

No description provided.

@mightqxc mightqxc requested a review from Copilot January 26, 2026 11:48
@mightqxc mightqxc marked this pull request as ready for review January 26, 2026 11:48
@mightqxc
Copy link
Collaborator Author

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds compatibility for the new HTCondor Python API version >= 25, which introduces breaking changes in the API interface. The changes include importing the new htcondor2 module when available and adapting to API changes such as the removal of SecMan and renaming of xquery to query.

Changes:

  • Introduced version detection for HTCondor Python API (version 1 vs 2) with fallback import logic
  • Updated all references from xquery to query method for job queries
  • Added conditional logic to only use SecMan and invalidateAllSessions() for API version 1
  • Renamed condor_api attribute to condor_api_type for clarity

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mightqxc mightqxc merged commit 9a74e35 into master Jan 28, 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.

1 participant