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
3bbf5583
Commit
3bbf5583
authored
Aug 28, 2012
by
Leo Gordon
Browse files
Scheduler should explain that workers are not added because of the pending ones
parent
7261b8b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
modules/Bio/EnsEMBL/Hive/Queen.pm
modules/Bio/EnsEMBL/Hive/Queen.pm
+3
-1
No files found.
modules/Bio/EnsEMBL/Hive/Queen.pm
View file @
3bbf5583
...
...
@@ -699,7 +699,7 @@ sub schedule_workers {
my
(
$self
,
$filter_analysis
,
$orig_pending_by_rc_id
,
$available_submit_limit
)
=
@_
;
my
$statsDBA
=
$self
->
db
->
get_AnalysisStatsAdaptor
;
my
$clearly_needed_analyses
=
$statsDBA
->
fetch_by_needed_workers
(
undef
);
my
$clearly_needed_analyses
=
$statsDBA
->
fetch_by_needed_workers
();
my
$potentially_needed_analyses
=
$statsDBA
->
fetch_by_statuses
(['
LOADING
',
'
BLOCKED
',
'
ALL_CLAIMED
']);
my
@all_analyses
=
(
@$clearly_needed_analyses
,
@$potentially_needed_analyses
);
...
...
@@ -710,6 +710,7 @@ sub schedule_workers {
my
%workers_to_run_by_rc_id
=
();
my
$available_load
=
1.0
-
$self
->
get_hive_current_load
();
foreach
my
$analysis_stats
(
@all_analyses
)
{
last
if
(
$available_load
<=
0.0
);
last
if
(
defined
(
$available_submit_limit
)
and
!
$available_submit_limit
);
...
...
@@ -747,6 +748,7 @@ sub schedule_workers {
if
(
$pending_by_rc_id
{
$curr_rc_id
})
{
# per-rc_id capping by pending processes, if available
my
$pending_this_analysis
=
(
$pending_by_rc_id
{
$curr_rc_id
}
<
$workers_this_analysis
)
?
$pending_by_rc_id
{
$curr_rc_id
}
:
$workers_this_analysis
;
print
"
Scheduler detected
$pending_this_analysis
pending workers with rc_id=
$curr_rc_id
\n
";
$workers_this_analysis
-=
$pending_this_analysis
;
$pending_by_rc_id
{
$curr_rc_id
}
-=
$pending_this_analysis
;
}
...
...
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