Skip to content
Snippets Groups Projects
Commit 50fc0529 authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Be kind to staging servers.

parent d56f8cd3
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment