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
1e5ff11e
Commit
1e5ff11e
authored
Feb 23, 2005
by
Jessica Severin
Browse files
included a sum of failed jobs in the calculation of %completion
parent
dbf16f37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
modules/Bio/EnsEMBL/Hive/Queen.pm
modules/Bio/EnsEMBL/Hive/Queen.pm
+5
-4
No files found.
modules/Bio/EnsEMBL/Hive/Queen.pm
View file @
1e5ff11e
...
...
@@ -584,16 +584,17 @@ sub get_num_needed_workers {
sub
get_hive_progress
{
my
$self
=
shift
;
my
$sql
=
"
SELECT sum(done_job_count
), sum(total_job_count) FROM analysis_stats
";
my
$sql
=
"
SELECT sum(done_job_count
), sum(failed_job_count
), sum(total_job_count) FROM analysis_stats
";
my
$sth
=
$self
->
prepare
(
$sql
);
$sth
->
execute
();
my
(
$done
,
$total
)
=
$sth
->
fetchrow_array
();
my
(
$done
,
$failed
,
$total
)
=
$sth
->
fetchrow_array
();
$sth
->
finish
;
$done
=
0
unless
(
$done
);
$failed
=
0
unless
(
$failed
);
$total
=
0
unless
(
$total
);
my
$completed
=
0.0
;
$completed
=
((
100.0
*
$done
)
/
$total
)
if
(
$total
>
0
);
printf
("
hive %1.3f%% complete (%d done / %d total)
\n
",
$completed
,
$done
,
$total
);
$completed
=
((
100.0
*
(
$done
+
$failed
)
)
/
$total
)
if
(
$total
>
0
);
printf
("
hive %1.3f%% complete (%d done
+ %d failed
/ %d total)
\n
",
$completed
,
$done
,
$failed
,
$total
);
return
$done
,
$total
;
}
...
...
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