From 331fc6313b69a5129714b87db7b36c8fe03d499f Mon Sep 17 00:00:00 2001
From: Jessica Severin <jessica@ebi.ac.uk>
Date: Tue, 8 Mar 2005 11:04:28 +0000
Subject: [PATCH] removed debugging messages. Changed synch wait to 3 minutes
 when WORKING

---
 modules/Bio/EnsEMBL/Hive/Queen.pm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/Bio/EnsEMBL/Hive/Queen.pm b/modules/Bio/EnsEMBL/Hive/Queen.pm
index 5a5957b2c..e314a4ad1 100755
--- a/modules/Bio/EnsEMBL/Hive/Queen.pm
+++ b/modules/Bio/EnsEMBL/Hive/Queen.pm
@@ -382,15 +382,15 @@ sub safe_synchronize_AnalysisStats {
   return $stats if($stats->status eq 'DONE');
   return $stats if($stats->sync_lock);
   return $stats if(($stats->status eq 'WORKING') and
-                   ($stats->seconds_since_last_update < 5*60));
+                   ($stats->seconds_since_last_update < 3*60));
 
   # OK try to claim the sync_lock
   my $sql = "UPDATE analysis_stats SET status='SYNCHING', sync_lock=1 ".
             "WHERE sync_lock=0 and analysis_id=" . $stats->analysis_id;
-  print("$sql\n");
+  #print("$sql\n");
   my $row_count = $self->dbc->do($sql);  
   return $stats unless($row_count == 1);
-  printf("got sync_lock on analysis_stats(%d)\n", $stats->analysis_id);
+  #printf("got sync_lock on analysis_stats(%d)\n", $stats->analysis_id);
   
   #OK have the lock, go and do the sync
   $self->synchronize_AnalysisStats($stats);
-- 
GitLab