skypilot-users
Is there a way to create a new machine if existing machines with specific tags are busy?
Georgehwp wants to re-use machines for the same dataset but start from scratch if the existing machines with specific tags are busy. Zongheng Yang from skypilot is asking for clarification on the definition of 'busy'.
Ge
Georgehwp
Asked on Feb 22, 2024
- You can achieve this by using the Python API and implementing status checks.
- Determine the criteria for a machine to be considered 'busy', whether it's based on running jobs or other factors.
- Utilize the API to check the status of existing machines with specific tags and their workload.
- Based on the status, decide whether to create a new machine or reuse an existing one.
- Implement logic to handle the creation of new machines based on the defined criteria.
Feb 22, 2024Edited by