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
0a83ea39
Commit
0a83ea39
authored
Dec 06, 2012
by
Leo Gordon
Browse files
bugfix: -job_limit now works correctly also with respecializing workers
parent
d05ffb98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
modules/Bio/EnsEMBL/Hive/Worker.pm
modules/Bio/EnsEMBL/Hive/Worker.pm
+3
-2
No files found.
modules/Bio/EnsEMBL/Hive/Worker.pm
View file @
0a83ea39
...
...
@@ -522,11 +522,12 @@ sub run {
}
else
{
my
$desired_batch_size
=
$self
->
analysis
->
stats
->
get_or_estimate_batch_size
();
$desired_batch_size
=
$self
->
job_limiter
->
preliminary_offer
(
$desired_batch_size
);
$self
->
job_limiter
->
final_decision
(
$desired_batch_size
);
my
$actual_batch
=
$job_adaptor
->
grab_jobs_for_worker
(
$self
,
$desired_batch_size
);
if
(
scalar
(
@$actual_batch
))
{
$jobs_done_by_batches_loop
+=
$self
->
run_one_batch
(
$actual_batch
);
my
$jobs_done_by_this_batch
=
$self
->
run_one_batch
(
$actual_batch
);
$jobs_done_by_batches_loop
+=
$jobs_done_by_this_batch
;
$self
->
job_limiter
->
final_decision
(
$jobs_done_by_this_batch
);
}
else
{
$self
->
cause_of_death
('
NO_WORK
');
}
...
...
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