From b90dc6df773be39f6a3d3173d6333582221fdbee Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Thu, 18 Sep 2008 22:53:26 +0000 Subject: [PATCH] Be a little more informative about how many process are left to run and what the exit code was in queuecommands.py --- gaworkflow/util/queuecommands.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gaworkflow/util/queuecommands.py b/gaworkflow/util/queuecommands.py index 0c34292..da10193 100644 --- a/gaworkflow/util/queuecommands.py +++ b/gaworkflow/util/queuecommands.py @@ -50,6 +50,7 @@ class QueueCommands(object): queue_log.info('using %s as cwd' % (self.cwd,)) while (len(self.to_run) > 0) and self.under_process_limit(): + queue_log.info('%d left to run', len(self.to_run)) cmd = self.to_run.pop(0) p = subprocess.Popen(cmd, stdout=PIPE, cwd=self.cwd, shell=True) self.running[p.stdout] = p @@ -79,6 +80,7 @@ class QueueCommands(object): pending = self.running[pending_fd] # if it really did finish, remove it from running jobs if pending.poll() is not None: - queue_log.info("Process %d finished" % (pending.pid,)) + queue_log.info("Process %d finished [%d]", + pending.pid, pending.returncode) del self.running[pending_fd] -- 2.30.2