Skip to content

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!

@DiegoTavares DiegoTavares merged commit 7a849df into AcademySoftwareFoundation:master Jul 17, 2024
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 <[email protected]>

---------

Signed-off-by: Diego Tavares <[email protected]>
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