Skip to content
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

[pycue] Add interactive functions to reboot hosts using the api #1419

Merged

Conversation

DiegoTavares
Copy link
Collaborator

New api functions can be used to interactively reboot hosts on the farm and monitor their state. New functions:

  • rebootFarmSafely: uses the hostSearch module to find hosts and requests a reboot for each of them in groups defined by the arg group_size. If start_time is provided the function will only target hosts that have boot_time > start_time
  • monitorRebootFarm Similar to rebootFarmSafely, but instead of requesting a reboot, it continuosly monitors reboot groups and only finishes when all the hosts on the query have been rebooted.

@ramonfigueiredo
Copy link
Collaborator

@DiegoTavares

One of the checks/pipelines is failing!

New api functions can be used to interactively reboot hosts on the farm and monitor their state. New functions:
 * `rebootFarmSafely`: uses the hostSearch module to find hosts and requests a reboot for each of them in groups defined by the arg `group_size`. If `start_time` is provided the function will only target hosts that have `boot_time` > `start_time`
 * `monitorRebootFarm` Similar to rebootFarmSafely, but instead of requesting a reboot, it continuosly monitors reboot groups and only finishes when all the hosts on the query have been rebooted.
Copy link
Collaborator

@ramonfigueiredo ramonfigueiredo left a comment

Choose a reason for hiding this comment

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

@DiegoTavares

Approved!

Just and minor suggested change and it is ready to merge!

Signed-off-by: Diego Tavares <dtavares@imageworks.com>
@DiegoTavares DiegoTavares merged commit 7a849df into AcademySoftwareFoundation:master Jul 17, 2024
12 checks passed
n-jay pushed a commit to n-jay/OpenCue that referenced this pull request Jul 26, 2024
…emySoftwareFoundation#1419)

* Add interactive functions to reboot hosts using the api

New api functions can be used to interactively reboot hosts on the farm and monitor their state. New functions:
 * `rebootFarmSafely`: uses the hostSearch module to find hosts and requests a reboot for each of them in groups defined by the arg `group_size`. If `start_time` is provided the function will only target hosts that have `boot_time` > `start_time`
 * `monitorRebootFarm` Similar to rebootFarmSafely, but instead of requesting a reboot, it continuosly monitors reboot groups and only finishes when all the hosts on the query have been rebooted.

* Update pycue/opencue/wrappers/host.py

Signed-off-by: Diego Tavares <dtavares@imageworks.com>

---------

Signed-off-by: Diego Tavares <dtavares@imageworks.com>
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