You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Its ridiculous to slow down experiments on every platform for problem on one platform. Already introduced "delay" as an argument for test monitoring; use this to control delay and only make it one minute on Derecho
This function reads the dictionary for a given experiment, runs the ``rocotorun`` command to update the experiment (by running new jobs and updating the status of previously submitted ones), and reads the Rocoto database (``.db``) file to update the status of each job in the experiment dictionary. The function then uses a simple set of rules to combine the statuses of every task into a useful summary status for the whole experiment and returns the updated experiment dictionary.
expt (dict): A dictionary containing the information for an individual experiment, as described in the main ``monitor_jobs()`` function.
246
246
name (str): Name of the experiment; used for logging only
247
247
refresh (bool): If True, this flag will check an experiment status even if it is listed as DEAD, ERROR, or COMPLETE. Used for initial checks for experiments that may have been restarted.
248
+
delay (int): [optional] Delay in seconds between calls to rocotorun.
248
249
debug (bool): Will capture all output from ``rocotorun``. This will allow information such as job cards and job submit messages to appear in the log files, but turning on this option can drastically slow down the testing process.
249
250
submit (bool): In addition to reading the Rocoto database (``.db``) file, the script will advance the workflow by calling ``rocotorun``. If simply generating a report, set this to False.
250
251
251
252
Returns:
252
253
expt: The updated experiment dictionary
253
254
"""
254
255
256
+
# Derecho requires long delay between calls to rocotorun due to system-level cacheing of
257
+
# job statuses
258
+
ifexpt["user"]["MACHINE"]=="DERECHO":
259
+
ifdelay<60:
260
+
delay=60
255
261
#If we are no longer tracking this experiment, return unchanged
256
262
if (expt["status"] in ['DEAD','ERROR','COMPLETE']) andnotrefresh:
expts_dict (dict): A dictionary containing information for all experiments
381
391
procs (int): The number of parallel processes
382
392
refresh (bool): "Refresh" flag to pass to ``update_expt_status()``. If True, this flag will check an experiment status even if it is listed as DEAD, ERROR, or COMPLETE. Used for initial checks for experiments that may have been restarted.
393
+
delay (int): [optional] Delay in seconds between calls to rocotorun.
383
394
debug (bool): Will capture all output from ``rocotorun``. This will allow information such as job cards and job submit messages to appear in the log files, but can drastically slow down the testing process.
0 commit comments