Commit 3e15825e authored by Thomas Thrainer's avatar Thomas Thrainer
Browse files

Don't fail QA if submitting a job takes too long



Degrade a QA error which was triggered if job sumission take too long to
a warning. This will prevent spurious QA failures.
Signed-off-by: default avatarThomas Thrainer <thomasth@google.com>
Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
parent 805f86d9
......@@ -214,9 +214,9 @@ def _ExecuteJobSubmittingCmd(cmd):
result = qa_job_utils.ExecuteJobProducingCommand(cmd)
duration = qa_utils.TimedeltaToTotalSeconds(datetime.datetime.now() - start)
if duration > MAX_JOB_SUBMISSION_DURATION:
raise qa_error.Error(
"Executing '%s' took %f seconds, only %f are allowed" %
(cmd, duration, MAX_JOB_SUBMISSION_DURATION))
print(qa_logging.FormatWarning(
"Executing '%s' took %f seconds, a maximum of %f was expected" %
(cmd, duration, MAX_JOB_SUBMISSION_DURATION)))
return result
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment