only report cwd when starting the queue monitor, not on every start job loop
authorDiane Trout <diane@caltech.edu>
Wed, 18 Mar 2009 18:35:15 +0000 (18:35 +0000)
committerDiane Trout <diane@caltech.edu>
Wed, 18 Mar 2009 18:35:15 +0000 (18:35 +0000)
htsworkflow/util/queuecommands.py

index 0426fe68fa67cdfe8521b988a3e4b7f24f07fd7a..649fad66422160b1acad89ac1b3712158fc2c8ce 100644 (file)
@@ -48,7 +48,6 @@ class QueueCommands(object):
         (or have run out of jobs)
         """
         queue_log = logging.getLogger('queue')
-        queue_log.debug('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))
@@ -62,6 +61,7 @@ class QueueCommands(object):
         run up to N jobs until we run out of jobs
         """
         queue_log = logging.getLogger('queue')
+        queue_log.debug('using %s as cwd' % (self.cwd,))
 
         # to_run slowly gets consumed by start_jobs
         while len(self.to_run) > 0 or len(self.running) > 0: