Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl-hive
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
7
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl-hive
Commits
8c11f4e8
Commit
8c11f4e8
authored
14 years ago
by
Leo Gordon
Browse files
Options
Downloads
Patches
Plain Diff
unification of names
parent
8def947f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/Bio/EnsEMBL/Hive/Worker.pm
+9
-9
9 additions, 9 deletions
modules/Bio/EnsEMBL/Hive/Worker.pm
with
9 additions
and
9 deletions
modules/Bio/EnsEMBL/Hive/Worker.pm
+
9
−
9
View file @
8c11f4e8
...
@@ -304,15 +304,15 @@ sub last_check_in {
...
@@ -304,15 +304,15 @@ sub last_check_in {
use
Digest::
MD5
qw(md5_hex)
;
use
Digest::
MD5
qw(md5_hex)
;
sub
output_dir
{
sub
output_dir
{
my
(
$self
,
$outdir
)
=
@_
;
my
(
$self
,
$out
put_
dir
)
=
@_
;
if
(
$outdir
and
(
-
d
$outdir
))
{
if
(
$out
put_
dir
and
(
-
d
$out
put_
dir
))
{
my
$worker_id
=
$self
->
worker_id
;
my
$worker_id
=
$self
->
worker_id
;
my
(
@hex
)
=
md5_hex
(
$worker_id
)
=~
m/\G(..)/g
;
my
(
@hex
)
=
md5_hex
(
$worker_id
)
=~
m/\G(..)/g
;
# If you want more than one level of directories, change $hex[0]
# If you want more than one level of directories, change $hex[0]
# below into an array slice. e.g @hex[0..1] for two levels.
# below into an array slice. e.g @hex[0..1] for two levels.
$outdir
=
join
('
/
',
$outdir
,
$hex
[
0
],
'
worker_id
'
.
$
worker_id
);
$out
put_
dir
=
join
('
/
',
$out
put_
dir
,
$hex
[
0
],
"
worker_id
_
${
worker_id
}
"
);
system
("
mkdir -p
$outdir
")
&&
die
"
Could not create
$outdir
\n
";
system
("
mkdir -p
$out
put_
dir
")
&&
die
"
Could not create
$out
put_
dir
\n
";
$self
->
{'
_output_dir
'}
=
$outdir
;
$self
->
{'
_output_dir
'}
=
$out
put_
dir
;
}
}
return
$self
->
{'
_output_dir
'};
return
$self
->
{'
_output_dir
'};
}
}
...
@@ -629,13 +629,13 @@ sub redirect_job_output
...
@@ -629,13 +629,13 @@ sub redirect_job_output
my
$self
=
shift
;
my
$self
=
shift
;
my
$job
=
shift
;
my
$job
=
shift
;
my
$outdir
=
$self
->
output_dir
();
my
$out
put_
dir
=
$self
->
output_dir
();
return
unless
(
$outdir
);
return
unless
(
$out
put_
dir
);
return
unless
(
$job
);
return
unless
(
$job
);
return
unless
(
$job
->
adaptor
);
return
unless
(
$job
->
adaptor
);
$job
->
stdout_file
(
$outdir
.
"
/job_
"
.
$job
->
dbID
.
"
.out
");
$job
->
stdout_file
(
$out
put_
dir
.
"
/job_
id_
"
.
$job
->
dbID
.
"
.out
");
$job
->
stderr_file
(
$outdir
.
"
/job_
"
.
$job
->
dbID
.
"
.err
");
$job
->
stderr_file
(
$out
put_
dir
.
"
/job_
id_
"
.
$job
->
dbID
.
"
.err
");
close
STDOUT
;
close
STDOUT
;
open
STDOUT
,
"
>
"
.
$job
->
stdout_file
;
open
STDOUT
,
"
>
"
.
$job
->
stdout_file
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment