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
82bf15a3
Commit
82bf15a3
authored
Apr 18, 2016
by
Matthieu Muffato
Browse files
bugfix: die if the input_id is not a valid hash
parent
f1b97188
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
scripts/seed_pipeline.pl
scripts/seed_pipeline.pl
+8
-1
No files found.
scripts/seed_pipeline.pl
View file @
82bf15a3
...
...
@@ -89,11 +89,18 @@ sub main {
$input_id
=
'
{}
';
warn
"
Since -input_id has not been set, assuming input_id='
$input_id
'
\n
";
}
my
$dinput_id
=
destringify
(
$input_id
);
if
(
!
ref
(
$dinput_id
))
{
die
"
'
$input_id
' cannot be eval'ed, likely because of a syntax error
\n
";
}
if
(
ref
(
$dinput_id
)
ne
'
HASH
')
{
die
"
'
$input_id
' is not a hash
\n
";
}
my
$job
=
Bio::EnsEMBL::Hive::
AnalysisJob
->
new
(
-
prev_job_id
=>
undef
,
# this job has been created by the initialization script, not by another job
-
analysis_id
=>
$analysis
->
dbID
,
-
input_id
=>
destringify
(
$input_id
),
# Make sure all job creations undergo re-stringification to avoid alternative "spellings" of the same input_id hash
-
input_id
=>
$
d
input_id
,
# Make sure all job creations undergo re-stringification to avoid alternative "spellings" of the same input_id hash
);
my
(
$job_id
)
=
@
{
$hive_dba
->
get_AnalysisJobAdaptor
->
store_jobs_and_adjust_counters
(
[
$job
]
)
};
...
...
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