From: Diane Trout Date: Thu, 25 Sep 2008 00:04:19 +0000 (+0000) Subject: solexa2srf likes to produce output, so my trick of watching the X-Git-Tag: stanford.caltech-merged-database-2009-jan-15~34 X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=657b881b83546c8197d57656871976efef90db41 solexa2srf likes to produce output, so my trick of watching the sockets to block until when the process ends didn't work. This patch inserts a simple sleep(1) (second) into the code that waits for the jobs to finish to prevent the queue manager from rapidly spinning. It should probably be fixed with a better way of monitoring for when a process finishes --- diff --git a/gaworkflow/util/queuecommands.py b/gaworkflow/util/queuecommands.py index da10193..78728ae 100644 --- a/gaworkflow/util/queuecommands.py +++ b/gaworkflow/util/queuecommands.py @@ -7,6 +7,7 @@ from subprocess import PIPE import subprocess import select import sys +import time class QueueCommands(object): """ @@ -83,4 +84,4 @@ class QueueCommands(object): queue_log.info("Process %d finished [%d]", pending.pid, pending.returncode) del self.running[pending_fd] - + time.sleep(1)