554af9e10ba4647f5f961f08abe3f9fb118b99da cricket Fri Oct 28 15:08:59 2011 -0700 added timeout to error message diff --git python/lib/ucscgenomics/qa.py python/lib/ucscgenomics/qa.py index 4cc9dc3..54eb401 100644 --- python/lib/ucscgenomics/qa.py +++ python/lib/ucscgenomics/qa.py @@ -241,31 +241,31 @@ 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() if cmdoutput: results.append(cmdoutput) if cmderr: results.append(cmderr) elif killed: - results.append("Process timeout for table: %s" % i) + results.append("Process timeout after %d seconds, for table: %s" % (timeout, i)) results.append("You might want to manually run: '%s'" % cmd) results.append("") if results: output.append("These tables have coordinate errors:") for i in results: output.append(i) else: output.append("No coordinate errors") output.append("") return (output, results) def positionalTblCheck(database, tables): notgbdbtablelist = tables - getGbdbTables(database, tables) results = []