Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ensembl-gh-mirror
ensembl-hive
Commits
31d8df4e
Commit
31d8df4e
authored
Jul 15, 2011
by
Leo Gordon
Browse files
do not update these fields when triggers in place
parent
4ea4ba80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisStatsAdaptor.pm
modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisStatsAdaptor.pm
+10
-5
No files found.
modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisStatsAdaptor.pm
View file @
31d8df4e
...
...
@@ -168,7 +168,6 @@ sub get_running_worker_count {
sub
update
{
my
(
$self
,
$stats
)
=
@_
;
$stats
->
num_running_workers
(
$self
->
get_running_worker_count
(
$stats
)
);
my
$hive_capacity
=
$stats
->
hive_capacity
;
if
(
$stats
->
behaviour
eq
"
DYNAMIC
")
{
...
...
@@ -200,12 +199,18 @@ sub update {
$sql
.=
"
,avg_run_msec_per_job=
"
.
$stats
->
avg_run_msec_per_job
();
$sql
.=
"
,avg_output_msec_per_job=
"
.
$stats
->
avg_output_msec_per_job
();
$sql
.=
"
,hive_capacity=
"
.
$stats
->
hive_capacity
();
$sql
.=
"
,total_job_count=
"
.
$stats
->
total_job_count
();
$sql
.=
"
,unclaimed_job_count=
"
.
$stats
->
unclaimed_job_count
();
$sql
.=
"
,done_job_count=
"
.
$stats
->
done_job_count
();
$sql
.=
"
,max_retry_count=
"
.
$stats
->
max_retry_count
();
$sql
.=
"
,failed_job_count=
"
.
$stats
->
failed_job_count
();
$sql
.=
"
,failed_job_tolerance=
"
.
$stats
->
failed_job_tolerance
();
unless
(
$self
->
db
->
hive_use_triggers
()
)
{
$sql
.=
"
,total_job_count=
"
.
$stats
->
total_job_count
();
$sql
.=
"
,unclaimed_job_count=
"
.
$stats
->
unclaimed_job_count
();
$sql
.=
"
,done_job_count=
"
.
$stats
->
done_job_count
();
$sql
.=
"
,failed_job_count=
"
.
$stats
->
failed_job_count
();
}
$stats
->
num_running_workers
(
$self
->
get_running_worker_count
(
$stats
)
);
$sql
.=
"
,num_running_workers=
"
.
$stats
->
num_running_workers
();
$sql
.=
"
,num_required_workers=
"
.
$stats
->
num_required_workers
();
$sql
.=
"
,last_update=CURRENT_TIMESTAMP
";
...
...
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