Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

WIP: Improve status code handling. #28

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

gorzell
Copy link
Contributor

@gorzell gorzell commented May 14, 2020

No description provided.

@gorzell gorzell requested a review from adityasharad May 14, 2020 19:04
}

export function convertModelStatusCode(code: number): number {
return -code
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this is done to distinguish between "the model returned a non-zero status code" and "the runner returned a non-zero status code"? We aren't running on Windows on Actions so maybe not crucial, but negative exit codes aren't always handled nicely.
Perhaps for now it's enough to just have a single non-zero status code for "the model returned a non-zero code", since we log the model exit code anyway.

Ok = 0,
InvalidArguments = 1,
UnknownError = 2,
DockerError = 5,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add an unsupported region code, too?

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

Successfully merging this pull request may close these issues.

3 participants