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

deepaas-cli returns exit code 1 even if the prediction is successful #160

Open
IgnacioHeredia opened this issue May 17, 2024 · 0 comments
Open

Comments

@IgnacioHeredia
Copy link
Collaborator

IgnacioHeredia commented May 17, 2024

This happens because, in the console script wrapper, sys.exit takes any non 0 returned value as exit code 1 (exception). (ref)

In cli.py:

def main():
    """Executes model's methods with corresponding parameters"""
    return None

--> exit code 0 (success)

def main():
    """Executes model's methods with corresponding parameters"""
    return 'success'

--> exit code 1 (error)

If we finally don't need them, consider removing returns from cli.py

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

No branches or pull requests

1 participant