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
a922aa57
Commit
a922aa57
authored
Feb 16, 2005
by
Jessica Severin
Browse files
increased the 'adaptive' batch_size to run for an estimated 120 seconds
parent
1e9b17ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
modules/Bio/EnsEMBL/Hive/Worker.pm
modules/Bio/EnsEMBL/Hive/Worker.pm
+6
-2
No files found.
modules/Bio/EnsEMBL/Hive/Worker.pm
View file @
a922aa57
...
...
@@ -275,7 +275,11 @@ sub print_worker {
print
("
batch_size =
",
$self
->
batch_size
,"
\n
");
print
("
job_limit =
",
$self
->
job_limit
,"
\n
")
if
(
defined
(
$self
->
job_limit
));
print
("
life_span =
",
$self
->
life_span
,"
\n
")
if
(
defined
(
$self
->
life_span
));
print
("
output_dir =
",
$self
->
output_dir
,
"
\n
")
if
(
$self
->
output_dir
);
if
(
$self
->
output_dir
)
{
print
("
output_dir =
",
$self
->
output_dir
,
"
\n
")
if
(
$self
->
output_dir
);
}
else
{
print
("
output_dir = STDOUT/STDERR
\n
")
}
}
###############################
...
...
@@ -311,7 +315,7 @@ sub batch_size {
}
if
((
$batch_size
==
0
)
and
(
$stats
->
avg_msec_per_job
))
{
$batch_size
=
int
(
1
5
000
/
$stats
->
avg_msec_per_job
);
# num jobs in 1
5
secs
$batch_size
=
int
(
1
20
000
/
$stats
->
avg_msec_per_job
);
# num jobs in 1
20
secs
}
$batch_size
=
1
if
(
$batch_size
<
1
);
# make sure we grab at least one job
...
...
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