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
b88c72fd
Commit
b88c72fd
authored
14 years ago
by
Leo Gordon
Browse files
Options
Downloads
Patches
Plain Diff
less confusing name for cleanup
parent
11ebc755
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/Bio/EnsEMBL/Hive/Worker.pm
+5
-5
5 additions, 5 deletions
modules/Bio/EnsEMBL/Hive/Worker.pm
scripts/runWorker.pl
+4
-4
4 additions, 4 deletions
scripts/runWorker.pl
with
9 additions
and
9 deletions
modules/Bio/EnsEMBL/Hive/Worker.pm
+
5
−
5
View file @
b88c72fd
...
...
@@ -367,11 +367,11 @@ sub worker_output_dir {
}
sub
perform_
global_
cleanup
{
sub
perform_cleanup
{
my
$self
=
shift
;
$self
->
{'
_perform_
global_
cleanup
'}
=
shift
if
(
@
_
);
$self
->
{'
_perform_
global_
cleanup
'}
=
1
unless
(
defined
(
$self
->
{'
_perform_
global_
cleanup
'}));
return
$self
->
{'
_perform_
global_
cleanup
'};
$self
->
{'
_perform_cleanup
'}
=
shift
if
(
@
_
);
$self
->
{'
_perform_cleanup
'}
=
1
unless
(
defined
(
$self
->
{'
_perform_cleanup
'}));
return
$self
->
{'
_perform_cleanup
'};
}
sub
print_worker
{
...
...
@@ -612,7 +612,7 @@ sub run {
}
}
while
(
!
$self
->
cause_of_death
);
# /Worker's lifespan loop
if
(
$self
->
perform_
global_
cleanup
)
{
if
(
$self
->
perform_cleanup
)
{
#have runnable cleanup any global/process files/data it may have created
$self
->
cleanup_worker_process_temp_directory
;
}
...
...
This diff is collapsed.
Click to expand it.
scripts/runWorker.pl
+
4
−
4
View file @
b88c72fd
...
...
@@ -72,7 +72,7 @@ GetOptions(
'
bk=s
'
=>
\
$self
->
{'
beekeeper
'},
# deprecated and ignored
'
pid=s
'
=>
\
$self
->
{'
process_id
'},
'
input_id=s
'
=>
\
$self
->
{'
input_id
'},
'
no_cleanup
'
=>
\
$self
->
{'
no_
global_
cleanup
'},
'
no_cleanup
'
=>
\
$self
->
{'
no_cleanup
'},
'
analysis_stats
'
=>
\
$self
->
{'
show_analysis_stats
'},
'
no_write
'
=>
\
$self
->
{'
no_write
'},
'
nowrite
'
=>
\
$self
->
{'
no_write
'},
...
...
@@ -190,8 +190,8 @@ if($self->{'job_limit'}) {
if
(
$self
->
{'
lifespan
'})
{
$worker
->
life_span
(
$self
->
{'
lifespan
'}
*
60
);
}
if
(
$self
->
{'
no_
global_
cleanup
'})
{
$worker
->
perform_
global_
cleanup
(
0
);
if
(
$self
->
{'
no_cleanup
'})
{
$worker
->
perform_cleanup
(
0
);
}
if
(
defined
$self
->
{'
retry_throwing_jobs
'})
{
$worker
->
retry_throwing_jobs
(
$self
->
{'
retry_throwing_jobs
'});
...
...
@@ -303,7 +303,7 @@ __DATA__
-input_id <string> : test input_id on specified analysis (analysis_id or logic_name)
-job_id <id> : run specific job defined by analysis_job_id
-analysis_stats : show status of each analysis in hive
-no_cleanup : don't perform
global_
cleanup when worker exits
-no_cleanup : don't perform
temp directory
cleanup when worker exits
-no_write : don't write_output or auto_dataflow input_job
-retry_throwing_jobs 0|1 : if a job dies *knowingly*, should we retry it by default?
...
...
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