Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl-hive
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
7
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl-hive
Commits
09e3c9b8
Commit
09e3c9b8
authored
10 years ago
by
Leo Gordon
Browse files
Options
Downloads
Patches
Plain Diff
API change: Q::print_analysis_status now takes an obligatory $list_of_analyses
parent
e6823db4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/Bio/EnsEMBL/Hive/Queen.pm
+12
-3
12 additions, 3 deletions
modules/Bio/EnsEMBL/Hive/Queen.pm
scripts/beekeeper.pl
+4
-5
4 additions, 5 deletions
scripts/beekeeper.pl
with
16 additions
and
8 deletions
modules/Bio/EnsEMBL/Hive/Queen.pm
+
12
−
3
View file @
09e3c9b8
...
...
@@ -700,10 +700,19 @@ sub get_remaining_jobs_show_hive_progress {
}
=head2 print_analysis_status
Arg [1] : $list_of_analyses
Example : $queen->print_analysis_status( [ $analysis_A, $analysis_B ] );
Description: Runs through all analyses in the given list and prints their stats.
Exceptions : none
Caller : beekeeper.pl
=cut
sub
print_analysis_status
{
my
(
$self
,
$
filter
_analys
i
s
)
=
@_
;
my
(
$self
,
$
list_of
_analys
e
s
)
=
@_
;
my
$list_of_analyses
=
$filter_analysis
?
[
$filter_analysis
]
:
$self
->
db
->
get_AnalysisAdaptor
->
fetch_all
;
foreach
my
$analysis
(
sort
{
$a
->
dbID
<=>
$b
->
dbID
}
@$list_of_analyses
)
{
print
$analysis
->
stats
->
toString
.
"
\n
";
}
...
...
@@ -715,7 +724,7 @@ sub print_analysis_status {
Example : $queen->register_all_workers_dead();
Description: Registers all workers dead
Exceptions : none
Caller : beekeeper
s and other external processes
Caller : beekeeper
.pl
=cut
...
...
This diff is collapsed.
Click to expand it.
scripts/beekeeper.pl
+
4
−
5
View file @
09e3c9b8
...
...
@@ -253,7 +253,7 @@ sub main {
if
(
$max_loops
)
{
# positive $max_loop means limited, negative means unlimited
run_autonomously
(
$self
,
$max_loops
,
$keep_alive
,
$queen
,
$valley
,
$analysis
,
$run_job_id
,
$force
);
run_autonomously
(
$self
,
$max_loops
,
$keep_alive
,
$queen
,
$valley
,
$list_of_analyses
,
$analysis
,
$run_job_id
,
$force
);
}
else
{
# the output of several methods will look differently depending on $analysis being [un]defined
...
...
@@ -261,7 +261,7 @@ sub main {
if
(
$sync
)
{
$queen
->
synchronize_hive
(
$list_of_analyses
);
}
$queen
->
print_analysis_status
(
$
analys
is
)
unless
(
$self
->
{'
no_analysis_stats
'});
$queen
->
print_analysis_status
(
$list_of_
analys
es
)
unless
(
$self
->
{'
no_analysis_stats
'});
if
(
$show_worker_stats
)
{
print
"
\n
===== List of live Workers according to the Queen: ======
\n
";
...
...
@@ -326,10 +326,9 @@ sub generate_worker_cmd {
}
sub
run_autonomously
{
my
(
$self
,
$max_loops
,
$keep_alive
,
$queen
,
$valley
,
$run_analysis
,
$run_job_id
,
$force
)
=
@_
;
my
(
$self
,
$max_loops
,
$keep_alive
,
$queen
,
$valley
,
$list_of_analyses
,
$run_analysis
,
$run_job_id
,
$force
)
=
@_
;
my
$resourceless_worker_cmd
=
generate_worker_cmd
(
$self
,
$run_analysis
,
$run_job_id
,
$force
);
my
$special_task
=
$run_analysis
||
$run_job_id
;
my
$rc_id2name
=
$self
->
{'
dba
'}
->
get_ResourceClassAdaptor
->
fetch_HASHED_FROM_resource_class_id_TO_name
();
my
%meadow_type_rc_name2resource_param_list
=
();
...
...
@@ -353,7 +352,7 @@ sub run_autonomously {
$queen
->
check_for_dead_workers
(
$valley
,
0
);
$queen
->
print_analysis_status
unless
(
$self
->
{'
no_analysis_stats
'});
$queen
->
print_analysis_status
(
$list_of_analyses
)
unless
(
$self
->
{'
no_analysis_stats
'});
$self
->
{'
dba
'}
->
get_RoleAdaptor
->
print_active_role_counts
;
my
$workers_to_submit_by_meadow_type_rc_name
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment