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
aa0a287a
Commit
aa0a287a
authored
Jul 13, 2011
by
Leo Gordon
Browse files
do not perform interval_update if no new jobs were done (to avoid division by zero)
parent
c39d4e24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
modules/Bio/EnsEMBL/Hive/Worker.pm
modules/Bio/EnsEMBL/Hive/Worker.pm
+11
-8
No files found.
modules/Bio/EnsEMBL/Hive/Worker.pm
View file @
aa0a287a
...
...
@@ -519,14 +519,17 @@ sub run {
# The following two database-updating operations are resource-expensive (all workers hammering the same database+tables),
# so they are not allowed to happen too frequently (not before $min_batch_time of work has been done)
#
$self
->
db
->
get_AnalysisStatsAdaptor
->
interval_update_work_done
(
$self
->
analysis
->
dbID
,
$jobs_done_by_batches_loop
,
$batches_stopwatch
->
get_elapsed
,
$self
->
{'
fetching_stopwatch
'}
->
get_elapsed
,
$self
->
{'
running_stopwatch
'}
->
get_elapsed
,
$self
->
{'
writing_stopwatch
'}
->
get_elapsed
,
);
if
(
$jobs_done_by_batches_loop
)
{
$self
->
db
->
get_AnalysisStatsAdaptor
->
interval_update_work_done
(
$self
->
analysis
->
dbID
,
$jobs_done_by_batches_loop
,
$batches_stopwatch
->
get_elapsed
,
$self
->
{'
fetching_stopwatch
'}
->
get_elapsed
,
$self
->
{'
running_stopwatch
'}
->
get_elapsed
,
$self
->
{'
writing_stopwatch
'}
->
get_elapsed
,
);
}
if
(
!
$self
->
cause_of_death
and
$self
->
analysis
->
stats
->
hive_capacity
>=
0
...
...
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