Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ats/atsMachines/lsf_asq.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ def examineOptions(self, options):
print("%s options.ompNumThreads = %s " % (DEBUG_LSF, options.ompNumThreads))
print("%s options.sleepBeforeSrun = %s " % (DEBUG_LSF, options.sleepBeforeSrun))
print("%s options.continueFreq = %s " % (DEBUG_LSF, options.continueFreq))
print("%s options.atsrFreq = %s " % (DEBUG_LSF, options.atsrFreq))
print("%s options.verbose = %s " % (DEBUG_LSF, options.verbose))
print("%s options.debug = %s " % (DEBUG_LSF, options.debug))
print("%s options.info = %s " % (DEBUG_LSF, options.info))
Expand Down
1 change: 1 addition & 0 deletions ats/atsMachines/slurmProcessorScheduled.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ def examineOptions(self, options):
print("%s options.ompNumThreads = %s " % (DEBUG_SLURM, options.ompNumThreads))
print("%s options.cpusPerTask = %s " % (DEBUG_SLURM, options.cpusPerTask))
print("%s options.continueFreq = %s " % (DEBUG_SLURM, options.continueFreq))
print("%s options.atsrFreq = %s " % (DEBUG_SLURM, options.atsrFreq))
print("%s options.quiet = %s " % (DEBUG_SLURM, options.quiet))
print("%s options.verbose = %s " % (DEBUG_SLURM, options.verbose))
print("%s options.debug = %s " % (DEBUG_SLURM, options.debug))
Expand Down
4 changes: 4 additions & 0 deletions ats/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,10 @@ def add_more_options(parser):
help='''Frequency in minutes to write a continuation
file. The default is to only write a continuation file at
the end of the run, and only if any tests failed.''')
parser.add_option('--atsrFreq', type='float', default=None,
help='''Frequency in minutes to write result
files. The default is to only write a result file at
the end of the run.''')
parser.add_option('--cutoff', dest = 'cuttime',
help='''Over-rides job timelimit. All jobs will be TIMEOUT
at this time. The value may be given as a digit followed
Expand Down
9 changes: 8 additions & 1 deletion ats/management.py
Original file line number Diff line number Diff line change
Expand Up @@ -1014,6 +1014,9 @@ def run(self, interactiveTests):
timeContinuation = time.time()
# Convert minutes to seconds
continuationStep = int(configuration.options.continueFreq * 60)
if configuration.options.atsrFreq is not None:
timeResult = time.time()
resultStep = int(configuration.options.atsrFreq * 60)
while unfinished:
timeNow = time.time()
timePassed = timeNow - timeStatusReport
Expand All @@ -1031,7 +1034,11 @@ def run(self, interactiveTests):
if (timeNow-timeContinuation) >= continuationStep:
self.continuationFile(interactiveTests, True)
timeContinuation = timeNow

if configuration.options.atsrFreq is not None:
timeNow = time.time()
if (timeNow-timeResult) >= resultStep:
self.saveResults()
timeResult = timeNow

def getResults(self):
"""Returns an attribute dictionary containing the state of this
Expand Down
Loading