OpenCDSS / cdss-lib-processor-ts-java

Colorado's Decision Support Systems (CDSS) time series processor library (Java)
GNU General Public License v3.0
0 stars 1 forks source link

RunCommands - enable feature to allow child processor to know that RunCommands is being used #203

Open smalers opened 1 year ago

smalers commented 1 year ago

Some workflows might be handled differently if run independently rather than when run using RunCommands. For example, AWS CloudFront invalidations have a free tier but are charged for after that. Consequently, it makes sense to create a separate invalidation if testing one command file, but if multiple files can be invalidated in a group, charges can be avoided. The command file logic might have something like:

If not running from RunCommands
   do the invalidation
# Otherwise, the invalidation occurs in the main command file.

Some logic is already in place to handle the exit code for a command file so hopefully the enhancement would not be too difficult.