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
d6237f49
Commit
d6237f49
authored
Jul 08, 2011
by
Leo Gordon
Browse files
return immediately if honeycomb_dir not defined
parent
54c1585a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
modules/Bio/EnsEMBL/Hive/Process.pm
modules/Bio/EnsEMBL/Hive/Process.pm
+7
-5
No files found.
modules/Bio/EnsEMBL/Hive/Process.pm
View file @
d6237f49
...
...
@@ -505,17 +505,19 @@ sub output {
sub
check_if_exit_cleanly
{
my
$self
=
shift
;
my
$id
=
$self
->
input_job
->
dbID
;
my
$honeycomb_dir
=
$self
->
{'
honeycomb_dir
'};
my
$honeycomb_dir
=
$self
->
{'
honeycomb_dir
'}
or
return
;
$honeycomb_dir
=~
s/\/$//
;
my
$not_allowed
=
$honeycomb_dir
.
"
/
"
.
"
relegate.
"
.
$id
;
my
$job_id
=
$self
->
input_job
->
dbID
;
my
$not_allowed
=
$honeycomb_dir
.
"
/
"
.
"
relegate.
"
.
$job_id
;
my
$exit_cleanly
=
$honeycomb_dir
.
"
/
"
.
"
relegate.all
";
if
(
-
e
$not_allowed
)
{
$self
->
update_status
('
FAILED
');
throw
("
This job has been relegated to be killed -
$id
\n
");
throw
("
This job has been relegated to be killed -
$
job_
id
\n
");
}
elsif
(
-
e
$exit_cleanly
)
{
$self
->
update_status
('
READY
');
throw
("
This job has been relegated to be exited -
$id
\n
");
throw
("
This job has been relegated to be exited -
$
job_
id
\n
");
}
return
undef
;
}
...
...
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