StatAnalysis - Support setting multiples jobs #1842
Labels
alert: NEED ACCOUNT KEY
Need to assign an account key to this issue
alert: NEED CYCLE ASSIGNMENT
Need to assign to a release development cycle
alert: NEED MORE DEFINITION
Not yet actionable, additional definition required
component: code cleanup
Code cleanup and maintenance issue
component: python wrapper
METplus: Configuration
priority: high
High Priority
reporting: DTC NOAA BASE
NOAA Office of Atmospheric Research DTC Project
reporting: DTC NOAA R2O
NOAA Research to Operations DTC Project
required: FOR DEVELOPMENT RELEASE
Required to be completed in the development release for the assigned project
type: enhancement
Improve something that it is currently doing
Milestone
Currently only 1 job can be specified via StatAnalysis wrapper using the STAT_ANALYSIS_JOB_NAME and STAT_ANALYSIS_JOB_ARGS config variables. Only 1 job is allowed to be specified via the command line arguments to stat_analysis, but multiple jobs can be specified in the STATAnalysisConfig file.
Describe the Enhancement
Enhance the StatAnalysis wrapper to support setting multiple jobs.
Instead of setting STAT_ANALYSIS_JOB_NAME and STAT_ANALYSIS_JOB_ARGS, users can set STAT_ANALYSIS_JOB1, STAT_ANALYSIS_JOB2, etc. The -job argument and job type that was previously specified via STAT_ANALYSIS_JOB_NAME will be included in the value of STAT_ANALYSIS_JOB<n>.
While the following will still be supported:
the same job command can be specified using:
and additional jobs can be specified with JOB2, JOB3, etc.
@CPKalb also discovered that filename template tags are not supported in the job arguments. The [dump_row_file] and [out_stat_file] syntax are substituted with the values from MODEL<n>_STAT_ANALYSIS_DUMP_ROW_TEMPLATE and MODEL<n>_STAT_ANALYSIS_OUT_STAT_TEMPLATE respectively. The logic should also be enhanced to substitute filename template tags anywhere in the job value so that multiple jobs can more easily be customized.
Time Estimate
~2 days
Sub-Issues
Consider breaking the enhancement down into sub-issues.
Relevant Deadlines
5.0.0
Funding Source
Define the source of funding and account keys here or state NONE.
Define the Metadata
Assignee
Labels
Projects and Milestone
Define Related Issue(s)
Consider the impact to the other METplus components.
Enhancement Checklist
See the METplus Workflow for details.
Branch name:
feature_<Issue Number>_<Description>
Pull request:
feature <Issue Number> <Description>
Select: Reviewer(s) and Linked issues
Select: Repository level development cycle Project for the next official release
Select: Milestone as the next official version
The text was updated successfully, but these errors were encountered: