Skip to content

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

@asadniazi

Description

@asadniazi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions