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

Add ability to do custom check on a device when locking #690

Open
asadniazi opened this issue Jul 30, 2024 · 0 comments
Open

Add ability to do custom check on a device when locking #690

asadniazi opened this issue Jul 30, 2024 · 0 comments

Comments

@asadniazi
Copy link

What feature do you want to see added?

I t would be nice to be able to do some checks on the device when picking a device from the pool e.g. ping test, ssh/telnet login test to ensure the device is in usable state. developer should be able to provide and point to a piece of code to be used to check if the device is in good state before logging.

Possible flow could be:

  1. Lock a resource
  2. Run the provided device check code
  3. Continue of the code returns True,
  4. Else, try the next available resource from the pool
  5. If none found abort/fail the build with proper error message

Upstream changes

No response

Are you interested in contributing this feature?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants