From 657b881b83546c8197d57656871976efef90db41 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Thu, 25 Sep 2008 00:04:19 +0000 Subject: [PATCH] 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 --- gaworkflow/util/queuecommands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.30.2