awslabs / fmbench-orchestrator

Run FMBench simultaneously across multiple Amazon EC2 machines to benchmark an FM across multiple serving stacks simultaneously
https://aws-samples.github.io/foundation-model-benchmarking-tool/
2 stars 2 forks source link

Add handling for when Instance_id is passed, but is Invalid #7

Open dheerajoruganty opened 1 month ago

dheerajoruganty commented 1 month ago

Description:

If an Instance_id is passed and it is invalid (e.g., the instance does not exist, has been terminated, or the Instance_id format is incorrect), the process currently fails and stops execution.

Scenarios Where This Might Occur:

Steps to Reproduce:

  1. Pass an invalid Instance_id to an API call.
  2. Observe the process halt due to an error response from the API.

Expected Behavior:

Possible Solutions:

Relevant Code/Section:

Add error handling to the get_instance_details EC2 API