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
32708ea6
Commit
32708ea6
authored
May 23, 2012
by
Leo Gordon
Browse files
pipeline_name now gets propagated to all meadows of the Valley (preparatory)
parent
394ad647
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
modules/Bio/EnsEMBL/Hive/Valley.pm
modules/Bio/EnsEMBL/Hive/Valley.pm
+6
-2
scripts/beekeeper.pl
scripts/beekeeper.pl
+1
-2
No files found.
modules/Bio/EnsEMBL/Hive/Valley.pm
View file @
32708ea6
...
...
@@ -34,7 +34,7 @@ sub meadow_class_path {
sub
new
{
my
(
$class
,
$current_meadow_type
)
=
@_
;
my
(
$class
,
$current_meadow_type
,
$pipeline_name
)
=
@_
;
my
$self
=
bless
{},
$class
;
...
...
@@ -44,7 +44,11 @@ sub new {
foreach
my
$meadow_class
(
@
{
find_submodules
(
$self
->
meadow_class_path
)
})
{
eval
"
require
$meadow_class
";
if
(
$meadow_class
->
name
)
{
$amch
->
{
$meadow_class
->
type
}
=
$meadow_class
->
new
();
my
$meadow_object
=
$meadow_class
->
new
();
$meadow_object
->
pipeline_name
(
$pipeline_name
)
if
(
$pipeline_name
);
$amch
->
{
$meadow_class
->
type
}
=
$meadow_object
;
}
}
...
...
scripts/beekeeper.pl
View file @
32708ea6
...
...
@@ -171,12 +171,11 @@ sub main {
}
$meadow_type
=
'
LOCAL
'
if
(
$local
);
my
$valley
=
Bio::EnsEMBL::Hive::
Valley
->
new
(
$meadow_type
);
my
$valley
=
Bio::EnsEMBL::Hive::
Valley
->
new
(
$meadow_type
,
$pipeline_name
);
my
$current_meadow
=
$valley
->
get_current_meadow
();
warn
"
Current meadow:
"
.
$current_meadow
->
toString
.
"
\n
";
$current_meadow
->
pipeline_name
(
$pipeline_name
);
$current_meadow
->
meadow_options
(
$meadow_options
);
$current_meadow
->
total_running_workers_max
(
$total_workers_max
)
if
(
$total_workers_max
);
$current_meadow
->
pending_adjust
(
not
$no_pend_adjust
);
...
...
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