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

[Feature]: Flag to force non-zero exit status if any variable failed. #272

Open
TonyB9000 opened this issue Aug 16, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@TonyB9000
Copy link
Contributor

TonyB9000 commented Aug 16, 2024

Is your feature request related to a problem?

As e3sm_to_cmip is designed to accept a list of variables to cmorize, the default behavior was to continue onward even if a variable failed, and eventually return a 0 status. This would prevent a calling process from knowing to exit itself when e3sm_to_cmip failed for a cmorizing failure.

At minimum, the app needs to return non-zero if any variable failed, Optionally, a flag to force an exit when any variable failed.

Describe the solution you'd like

One or two optional command line flags:

  • error-on-var-failure: Ensure a non-zero status is returned after all variables are processed, if any one of them failed.
  • exit-on-var-failure: Force application to exit ASAP when any variable failure is encountered.

Describe alternatives you've considered

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

1 participant