Add "watchdog" script on Frontier runs #6388
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In this PR we add a script that checks periodically if the code execution on Frontier is proceeding as expected.
In case the code is hanging, which is verified by checking the output file timestamp, the execution is killed to save computational time.
Compared to previous attempts, this script has a double timer: a frequent check and an output modification check. The check is ran frequently (every
check_intervalseconds) and checks that the output file has been modified not more thantimeout_secseconds before. Differentiating the timers, compared to just running a single check, prevents the script to stall a simulation that, for instance, finishes correctly between two checks. This way, if the simulation ends between twotimeout_secchecks, the script will wait at mostcheck_intervalbefore closing.Close #5584