Skip to content

Rebuild the schedd on a htcondor error #693

Description

@MrCreosote

If HTCondor is shut down, the Schedd built by the CTS on kbase job flow startup can no longer contact it. It needs to be rebuilt from scratch, so the client probably needs a method to rebuild a schedd.

Something like

class SchedProxy:
    def __init__(self, factory):
        self.factory = factory
        self.schedd = factory()

    def refresh(self):
        htcondor.SecMan().invalidateAllSessions()
        self.schedd = self.factory()

    def query(self, *args, **kwargs):
        try:
            return self.schedd.query(*args, **kwargs)
        except htcondor.HTCondorIOError:
            self.refresh()
            return self.schedd.query(*args, **kwargs)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions