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
dfff9ea4
Commit
dfff9ea4
authored
Jan 04, 2013
by
Leo Gordon
Browse files
send the fatal "COULDNT CREATE WORKER" message to stderr instead of stdout
parent
35458247
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
20 deletions
+14
-20
modules/Bio/EnsEMBL/Hive/Queen.pm
modules/Bio/EnsEMBL/Hive/Queen.pm
+2
-1
scripts/runWorker.pl
scripts/runWorker.pl
+12
-19
No files found.
modules/Bio/EnsEMBL/Hive/Queen.pm
View file @
dfff9ea4
...
...
@@ -137,7 +137,8 @@ sub create_new_worker {
eval
{
make_path
(
$worker_log_dir
);
}
and
die
"
Could not create '
$worker_log_dir
' directory : $@
";
1
;
}
or
die
"
Could not create '
$worker_log_dir
' directory : $@
";
my
$sth_add_log
=
$self
->
prepare
(
"
UPDATE worker SET log_dir=? WHERE worker_id=?
"
);
$sth_add_log
->
execute
(
$worker_log_dir
,
$worker_id
);
...
...
scripts/runWorker.pl
View file @
dfff9ea4
...
...
@@ -106,30 +106,23 @@ eval {
# Other parameters:
-
debug
=>
$debug
,
);
};
my
$msg_thrown
=
$@
;
if
(
$worker
)
{
}
or
do
{
my
$specialization_arglist
=
(
$analysis_id
||
$logic_name
||
$job_id
)
&&
[
-
analysis_id
=>
$analysis_id
,
-
logic_name
=>
$logic_name
,
-
job_id
=>
$job_id
,
-
force
=>
$force
,
];
my
$msg_thrown
=
$@
;
$queen
->
print_analysis_status
;
die
"
\n
=== COULDN'T CREATE WORKER ===
\n\t
$msg_thrown
";
};
$worker
->
run
(
$specialization_arglist
);
}
else
{
my
$specialization_arglist
=
(
$analysis_id
||
$logic_name
||
$job_id
)
&&
[
-
analysis_id
=>
$analysis_id
,
-
logic_name
=>
$logic_name
,
-
job_id
=>
$job_id
,
-
force
=>
$force
,
];
$queen
->
print_analysis_status
;
print
"
\n
=== COULDN'T CREATE WORKER ===
\n
";
if
(
$msg_thrown
)
{
print
"
$msg_thrown
\n
";
}
exit
(
1
);
}
$worker
->
run
(
$specialization_arglist
);
__DATA__
...
...
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