-
Notifications
You must be signed in to change notification settings - Fork 7
Description
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
An alternative that is cleaner, although technically alters behavior, is to default to returning 0 unless ALL variables failed. This would obviate the need for a new command line flag, yet serve perfectly for the use-cases where only a single variable is supplied for cmorizing. No "special "early exit option" would be applied, as only one variable is being processed.
Additional context
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status