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
e2104d1e
Commit
e2104d1e
authored
Mar 30, 2010
by
Leo Gordon
Browse files
this change should speed everything up
parent
0656dc9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
modules/Bio/EnsEMBL/Hive/Queen.pm
modules/Bio/EnsEMBL/Hive/Queen.pm
+4
-4
sql/tables.sql
sql/tables.sql
+1
-1
No files found.
modules/Bio/EnsEMBL/Hive/Queen.pm
View file @
e2104d1e
...
...
@@ -478,20 +478,20 @@ sub synchronize_AnalysisStats {
$analysisStats
->
failed_job_count
(
0
);
$analysisStats
->
num_required_workers
(
0
);
my
$sql
=
"
SELECT status, count(*), semaphore_count
>0 semaphored
FROM analysis_job
"
.
"
WHERE analysis_id=? GROUP BY status, semaphore
d
";
my
$sql
=
"
SELECT status, count(*), semaphore_count FROM analysis_job
"
.
"
WHERE analysis_id=? GROUP BY status, semaphore
_count
";
my
$sth
=
$self
->
prepare
(
$sql
);
$sth
->
execute
(
$analysisStats
->
analysis_id
);
my
$hive_capacity
=
$analysisStats
->
hive_capacity
;
while
(
my
(
$status
,
$count
,
$semaphore
d
)
=
$sth
->
fetchrow_array
())
{
while
(
my
(
$status
,
$count
,
$semaphore
_count
)
=
$sth
->
fetchrow_array
())
{
# print STDERR "$status - $count\n";
my
$total
=
$analysisStats
->
total_job_count
();
$analysisStats
->
total_job_count
(
$total
+
$count
);
if
((
$status
eq
'
READY
')
and
!
$semaphore
d
)
{
if
((
$status
eq
'
READY
')
and
(
$semaphore
_count
<=
0
)
)
{
$analysisStats
->
unclaimed_job_count
(
$count
);
my
$numWorkers
;
if
(
$analysisStats
->
batch_size
>
0
)
{
...
...
sql/tables.sql
View file @
e2104d1e
...
...
@@ -139,7 +139,7 @@ CREATE TABLE analysis_job (
PRIMARY
KEY
(
analysis_job_id
),
UNIQUE
KEY
input_id_analysis
(
input_id
,
analysis_id
),
INDEX
claim_analysis_status
(
job_claim
,
analysis_id
,
status
),
INDEX
analysis_status
(
analysis_id
,
status
),
INDEX
analysis_status
(
analysis_id
,
status
,
semaphore_count
),
INDEX
worker_id
(
worker_id
)
)
ENGINE
=
InnoDB
;
...
...
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