NREL / buildstockbatch

Other
22 stars 14 forks source link

Add config option for maximum simulation time for individual models #400

Closed asparke2 closed 1 year ago

asparke2 commented 1 year ago

ComStock has some very long-running models which often have to be manually killed on Eagle, otherwise the entire job will time out on SLURM. When the job times out, the entire job must be re-run. This feature adds a config option to set a max simulation time that's enforced for each individual model. When this max time is reached, the openstudio process for this model is terminated and the relevant log files are generated such that postprocessing can handle these jobs correctly.

github-actions[bot] commented 1 year ago

File Coverage
All files 86% :white_check_mark:
base.py 90% :white_check_mark:
eagle.py 77% :white_check_mark:
exc.py 57% :white_check_mark:
local.py 70% :white_check_mark:
postprocessing.py 84% :white_check_mark:
utils.py 96% :white_check_mark:
sampler/base.py 79% :white_check_mark:
sampler/downselect.py 33% :white_check_mark:
sampler/precomputed.py 93% :white_check_mark:
sampler/residential_quota.py 61% :white_check_mark:
test/test_docker.py 33% :white_check_mark:
test/test_validation.py 97% :white_check_mark:
workflow_generator/base.py 90% :white_check_mark:
workflow_generator/commercial.py 53% :white_check_mark:
workflow_generator/residential_hpxml.py 86% :white_check_mark:

Minimum allowed coverage is 33%

Generated by :monkey: cobertura-action against e758aa46f583716c569033e91ef2e9aa51afee3a