b6492dfc335e3320a7950632dfd06350500505c5 wong Fri Oct 28 15:23:53 2011 -0700 upped timeout to 20 seconds diff --git python/lib/ucscgenomics/qa.py python/lib/ucscgenomics/qa.py index 54eb401..635f563 100644 --- python/lib/ucscgenomics/qa.py +++ python/lib/ucscgenomics/qa.py @@ -220,31 +220,31 @@ if output: output.insert(0,"Label errors:") output.append("") else: output.append("No labels are incorrect") output.append("") return (output, toolong) def checkTableCoords(database, tables): """Runs checkTableCoords externally against a set of tables, timeout is 10 seconds""" notgbdbtablelist = tables - getGbdbTables(database, tables) results = [] output = [] - timeout = 10 + timeout = 20 for i in sorted(notgbdbtablelist): start = datetime.datetime.now() cmd = "checkTableCoords %s %s" % (database, i) p = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True) killed = 0 while p.poll() is None: time.sleep(0.1) now = datetime.datetime.now() if (now - start).seconds > timeout: p.kill() killed = 1 if not killed: cmdoutput = p.stdout.read() cmderr = p.stderr.read()