From d87a26c96e51a28416f5a6af1b0999c5fda5fe5e Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Tue, 13 Nov 2012 14:27:05 +0000 Subject: Log job termination. Avoid logging pending jobs. --- worker/worker | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/worker/worker b/worker/worker index 6fb7027..739f582 100755 --- a/worker/worker +++ b/worker/worker @@ -191,13 +191,7 @@ class Custodian begin job = @queue.reserve() - # - # Get the count of pending jobs - # - stats = @queue.stats() - pend = stats['current-jobs-ready'] || 0 - - log_message( "Job aquired. Job ID : #{job.id} pending jobs:#{pend}" ) + log_message( "Job aquired - Job ID : #{job.id}" ) # @@ -296,6 +290,7 @@ class Custodian # we should remove it to avoid picking it up again, or we handled # it successfully so it should be removed. # + log_message( "Job ID : #{job.id} - Removed" ) job.delete if ( job ) end end -- cgit v1.2.1