Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl-hive
Commits
dfbfa4e4
Commit
dfbfa4e4
authored
Sep 19, 2017
by
Matthieu Muffato
Browse files
Let beekeeper exit with code 1 when there are errors
parent
d3223edd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
scripts/beekeeper.pl
scripts/beekeeper.pl
+4
-2
No files found.
scripts/beekeeper.pl
View file @
dfbfa4e4
...
...
@@ -371,9 +371,10 @@ sub main {
if
(
$bury_unkwn_workers
)
{
$queen
->
check_for_dead_workers
(
$valley
,
1
,
1
);
}
if
(
$balance_semaphores
)
{
$self
->
{'
dba
'}
->
get_AnalysisJobAdaptor
->
balance_semaphores
(
$list_of_analyses
);
}
my
$has_error
=
0
;
if
(
$self
->
{'
max_loops
'})
{
# positive $max_loop means limited, negative means unlimited
run_autonomously
(
$self
,
$self
->
{'
pipeline
'},
$self
->
{'
max_loops
'},
$self
->
{'
loop_until
'},
$valley
,
$list_of_analyses
,
$self
->
{'
analyses_pattern
'},
$run_job_id
,
$force
);
$has_error
=
run_autonomously
(
$self
,
$self
->
{'
pipeline
'},
$self
->
{'
max_loops
'},
$self
->
{'
loop_until
'},
$valley
,
$list_of_analyses
,
$self
->
{'
analyses_pattern
'},
$run_job_id
,
$force
);
}
else
{
# the output of several methods will look differently depending on $analysis being [un]defined
...
...
@@ -403,7 +404,7 @@ sub main {
}
$self
->
{'
beekeeper
'}
->
set_cause_of_death
('
LOOP_LIMIT
');
}
exit
(
0
);
exit
(
$has_error
);
}
#######################
...
...
@@ -690,6 +691,7 @@ sub run_autonomously {
$self
->
{'
beekeeper
'}
->
set_cause_of_death
(
$beekeeper_cause_of_death
);
printf
("
Beekeeper: dbc %d disconnect cycles
\n
",
$hive_dba
->
dbc
->
disconnect_count
);
return
$cause_of_death_is_error
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment