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
5a963581
Commit
5a963581
authored
Nov 16, 2012
by
Leo Gordon
Browse files
bugfix: min_batch_time moved to prevent infinite loop in -compile_module_once 0 mode
parent
c64e2b7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/Bio/EnsEMBL/Hive/Worker.pm
modules/Bio/EnsEMBL/Hive/Worker.pm
+3
-3
No files found.
modules/Bio/EnsEMBL/Hive/Worker.pm
View file @
5a963581
...
...
@@ -514,10 +514,13 @@ sub run {
$self
->
get_stderr_redirector
->
push
(
$worker_log_dir
.
'
/worker.err
'
);
}
my
$min_batch_time
;
eval
{
$self
->
enter_status
('
SPECIALIZATION
');
$self
->
adaptor
->
specialize_new_worker
(
$self
,
@spec_args
);
$self
->
print_worker
();
$min_batch_time
=
$self
->
analysis
->
stats
->
min_batch_time
();
1
;
}
or
do
{
my
$msg
=
"
Could not specialize worker:
\n\t
"
.
$@
;
...
...
@@ -527,8 +530,6 @@ sub run {
$self
->
cause_of_death
('
SEE_MSG
')
unless
(
$self
->
cause_of_death
());
# some specific causes could have been set prior to die "...";
};
my
$min_batch_time
;
if
(
!
$self
->
cause_of_death
()
and
$self
->
compile_module_once
()
)
{
eval
{
$self
->
enter_status
('
COMPILATION
');
...
...
@@ -541,7 +542,6 @@ sub run {
$self
->
runnable_object
(
$runnable_object
);
$self
->
enter_status
('
READY
');
$min_batch_time
=
$self
->
analysis
->
stats
->
min_batch_time
();
$self
->
adaptor
->
db
->
dbc
->
disconnect_when_inactive
(
0
);
1
;
}
or
do
{
...
...
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