From 50fc05298c7e77ed496d32f07df6ffa0e224cbcc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20Kusalananda=20K=C3=A4h=C3=A4ri?=
 <ak4@sanger.ac.uk>
Date: Thu, 21 Jan 2010 11:30:01 +0000
Subject: [PATCH] Be kind to staging servers.

---
 misc-scripts/translation_attribs_wrapper.pl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/misc-scripts/translation_attribs_wrapper.pl b/misc-scripts/translation_attribs_wrapper.pl
index e60807ac07..1de7be920d 100644
--- a/misc-scripts/translation_attribs_wrapper.pl
+++ b/misc-scripts/translation_attribs_wrapper.pl
@@ -115,7 +115,7 @@ my @ranges = ('^[a-b]','^c','^d','^e','^f','^[g-h]','^[i-l]','^m[a-i]','^m[j-z]'
 my $core_db = ".*core_$release\_.*";
 my $call;
 foreach my $pattern (@ranges){
-    $call = "bsub -o ${path}/output_translation_${pattern}.txt -e ${path}/output_translation_${pattern}.err -q $queue -R$memory ./translation_attribs.pl --user $user --pass $pass $options";
+    $call = "bsub -R 'select[(myens_staging1<=800)&&(myens_staging2<=800)]' -o ${path}/output_translation_${pattern}.txt -e ${path}/output_translation_${pattern}.err -q $queue -R$memory ./translation_attribs.pl --user $user --pass $pass $options";
     $call .= " --pattern '" . $pattern . $core_db. "'";
 
     system($call);
@@ -125,7 +125,7 @@ foreach my $pattern (@ranges){
 #we now need to run it for the otherfeatures|vega databases, but only the pepstats
 
 my $vega_db = ".*_vega_$release\_.*";
-$call = "bsub -o '" . "$path/output_translation_vega.txt" . "' -q $queue -R$memory ./translation_attribs.pl --user $user --pass $pass $options";
+$call = "bsub -R 'select[(myens_staging1<=800)&&(myens_staging2<=800)]' -o '" . "$path/output_translation_vega.txt" . "' -q $queue -R$memory ./translation_attribs.pl --user $user --pass $pass $options";
 $call .= " --pattern '" . $vega_db. "'";
 
 system($call);
@@ -136,7 +136,7 @@ system($call);
 my $other_db = ".*_otherfeatures_$release\_.*";
 
 foreach my $pattern (@ranges){
-    $call = "bsub -o '" . "$path/output_translation_other_$pattern.txt" . "' -q $queue -R$memory ./translation_attribs.pl --user $user --pass $pass $options";
+    $call = "bsub -R 'select[(myens_staging1<=800)&&(myens_staging2<=800)]' -o '" . "$path/output_translation_other_$pattern.txt" . "' -q $queue -R$memory ./translation_attribs.pl --user $user --pass $pass $options";
     $call .= " --pattern '" . $pattern . $other_db. "'";
     
     system($call);
-- 
GitLab