Feature Request: Better handling of invalid hybrid job names
Requested Feature Validation of job name when creating a hybrid job.
Reason for Request This is a very low-effort code enhancement, that would substantially improve the user experience.
What problem does this solve?
The issue is that when creating hybrid jobs, whose name includes an underscore (a fairly common naming practice for python users accustomed to a snake_case naming convention), the call will fail with a fairly non-descriptive error-message:
botocore.exceptions.ClientError: An error occurred (BadRequestException) when calling the CreateJob operation: Invalid request body
This can send an unexperienced user on a wild goose chase (or, worse, discourage them from running the job altogether), when in reality all they need to fix their code is to change the name of the job.
Hello I created a PR. Kindly have a look at it whenever you are free. Thanks a lot.
Hello @dtrenev @jacofeld have u had a chance to look at my PR? Do u suggest any changes? Thank you.
Might be more helpful to have a general ARN validator rather than one just for jobs; this can already be done with boto, but perhaps there's a reason to have it built into the Braket SDK?