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

rai has a 0 exit status on an error #20

Open
cwpearson opened this issue Aug 14, 2018 · 1 comment
Open

rai has a 0 exit status on an error #20

cwpearson opened this issue Aug 14, 2018 · 1 comment
Assignees
Labels

Comments

@cwpearson
Copy link
Contributor

I submitted a rai job with the following build file

rai:
  version: 0.2
resources:
  cpu:
    architecture: ppc64le
  network: true
commands:
  build_image:
    image_name: raiproject/scope:ppc64le-cuda80-latest
    dockerfile: "./ppc64le.cuda80.Dockerfile"
    no_cache: true

The server provides the following output

[ 2018-08-14 14:53:27.533701863 +0000 UTC] ✱ Downloading your code.
[ 2018-08-14 14:53:47.104687599 +0000 UTC] ✱ Docker image name cannot start with rai/ . Choose a different prefix.
[ 2018-08-14 14:53:47.17477052 +0000 UTC] ✱ Unable to create image raiproject/scope:ppc64le-cuda92-latest.

I think in this case, the client should exit with a non-zero exit status.

@cwpearson
Copy link
Contributor Author

I think if the client package returns an error when the execution fails, we will get a non-zero exit. Perhaps a new kind of client error could be created that refers to a non-zero job exit.

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

No branches or pull requests

2 participants