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
04217e70
Commit
04217e70
authored
Jul 13, 2004
by
Jessica Severin
Browse files
changed order by in fetch_by_needed_workers so that analyses with lower
system load (higher hive_capacity) are picked first
parent
54927cb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisStatsAdaptor.pm
modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisStatsAdaptor.pm
+2
-2
No files found.
modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisStatsAdaptor.pm
View file @
04217e70
...
...
@@ -83,9 +83,9 @@ sub fetch_by_needed_workers {
my
$limit
=
shift
;
my
$constraint
=
"
ast.num_required_workers>0 AND ast.status in ('READY','WORKING')
";
if
(
$limit
)
{
$self
->
_final_clause
("
ORDER BY analysis_id LIMIT
$limit
");
$self
->
_final_clause
("
ORDER BY
hive_capacity DESC,
analysis_id LIMIT
$limit
");
}
else
{
$self
->
_final_clause
("
ORDER BY analysis_id
");
$self
->
_final_clause
("
ORDER BY
hive_capacity DESC,
analysis_id
");
}
my
$results
=
$self
->
_generic_fetch
(
$constraint
);
$self
->
_final_clause
("");
#reset final clause for other fetches
...
...
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