Skip to content

Rearrange HTEX hold_worker because it holds managers, not workers #3840

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

benclifford
Copy link
Collaborator

See issue #3839

This changes the Python API side of this method to reflect that the action is on managers, not workers.

A separate PR will change the wire protocol command.

Changed Behaviour

this is internal to htex - nothing except stack traces should change for users

Type of change

  • Update to human readable text: Documentation/error messages/comments
  • Code maintenance/cleanup

See issue #3839

This changes the Python API side of this method to reflect that
the action is on managers, not workers.

A separate PR will change the wire protocol command.
@benclifford benclifford requested a review from khk-globus April 14, 2025 11:23
Comment on lines 658 to +659
logger.debug("Sending hold to manager: {}".format(manager['manager']))
self.hold_worker(manager['manager'])
self._hold_manager(manager['manager'])
Copy link
Collaborator

Choose a reason for hiding this comment

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

Unrelated to the thrust of this PR, but I see it now so observing it: since this is a blocking request, too bad this loop isn't in bulk. Or that _hold_manager is blocking.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah, that's probably quite interesting especially for large-node-count blocks (eg 1000 nodes). I'll link this comment from #3368 which talks about reworking this protocol.

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.

2 participants