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
d4940811
Commit
d4940811
authored
Jun 30, 2017
by
Leo Gordon
Browse files
bugfix: make sure we create a valid Config since we are going to need it
parent
45587cb9
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 @
d4940811
...
...
@@ -71,6 +71,7 @@ use warnings;
use
File::
Path
'
make_path
';
use
List::
Util
qw(max)
;
use
Bio::EnsEMBL::Hive::Utils::
Config
;
use
Bio::EnsEMBL::Hive::
Utils
('
destringify
',
'
dir_revhash
');
# NB: needed by invisible code
use
Bio::EnsEMBL::Hive::
Role
;
use
Bio::EnsEMBL::Hive::
Scheduler
;
...
...
@@ -145,7 +146,8 @@ sub create_new_worker {
}
}
my
(
$meadow
,
$process_id
,
$meadow_host
,
$meadow_user
)
=
Bio::EnsEMBL::Hive::
Valley
->
new
()
->
whereami
();
my
$default_config
=
Bio::EnsEMBL::Hive::Utils::
Config
->
new
();
# FIXME: pass @config_files from beekeeper over the command line arguments and use them in Utils::Config->new(...)
my
(
$meadow
,
$process_id
,
$meadow_host
,
$meadow_user
)
=
Bio::EnsEMBL::Hive::
Valley
->
new
(
$default_config
)
->
whereami
();
die
"
Valley is not fully defined
"
unless
(
$meadow
&&
$process_id
&&
$meadow_host
&&
$meadow_user
);
my
$meadow_type
=
$meadow
->
type
;
my
$meadow_name
=
$meadow
->
cached_name
;
...
...
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