[LNT] r291050 - Stagger background processing jobs
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 4 17:16:54 PST 2017
Author: cmatthews
Date: Wed Jan 4 19:16:53 2017
New Revision: 291050
URL: http://llvm.org/viewvc/llvm-project?rev=291050&view=rev
Log:
Stagger background processing jobs
Modified:
lnt/trunk/lnt/util/async_ops.py
Modified: lnt/trunk/lnt/util/async_ops.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/util/async_ops.py?rev=291050&r1=291049&r2=291050&view=diff
==============================================================================
--- lnt/trunk/lnt/util/async_ops.py (original)
+++ lnt/trunk/lnt/util/async_ops.py Wed Jan 4 19:16:53 2017
@@ -18,6 +18,7 @@ import lnt.server.db.fieldchange as fiel
import lnt.server.db.v4db
import traceback
import signal
+from time import sleep
import contextlib
import multiprocessing
from multiprocessing import Pool, TimeoutError, Manager, Process
@@ -119,7 +120,7 @@ def async_wrapper(job, ts_args, func_arg
if not clean_db:
lnt.server.db.v4db.V4DB.close_all_engines()
clean_db = True
-
+ sleep(3)
note("Running async wrapper: {} ".format(job.__name__)+ str(os.getpid()))
_v4db = current_app.old_config.get_database(ts_args['db'])
More information about the llvm-commits
mailing list