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
7c1f1d9f
Commit
7c1f1d9f
authored
Jun 16, 2004
by
Jessica Severin
Browse files
added lifespan option to change the amount of time a worker can live for
parent
869d2cc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
scripts/runWorker.pl
scripts/runWorker.pl
+5
-0
No files found.
scripts/runWorker.pl
View file @
7c1f1d9f
...
...
@@ -35,6 +35,7 @@ GetOptions('help' => \$help,
'
dbname=s
'
=>
\
$dbname
,
'
analysis_id=i
'
=>
\
$self
->
{'
analysis_id
'},
'
limit=i
'
=>
\
$self
->
{'
job_limit
'},
'
lifespan=i
'
=>
\
$self
->
{'
lifespan
'},
'
outdir=s
'
=>
\
$self
->
{'
outdir
'},
'
bk=s
'
=>
\
$self
->
{'
beekeeper
'},
);
...
...
@@ -90,6 +91,9 @@ if($self->{'job_limit'}) {
$worker
->
job_limit
(
$self
->
{'
job_limit
'});
$worker
->
life_span
(
0
);
}
if
(
$self
->
{'
lifespan
'})
{
$worker
->
life_span
(
$self
->
{'
lifespan
'}
*
60
);
}
$worker
->
print_worker
();
eval
{
...
...
@@ -123,6 +127,7 @@ sub usage {
print
"
-dbpass <pass> : mysql connection password
\n
";
print
"
-analysis_id <id> : analysis_id in db
\n
";
print
"
-limit <num> : #jobs to run before worker can die naturally
\n
";
print
"
-lifespan <num> : number of minutes this worker is allowed to run
\n
";
print
"
-outdir <path> : directory where stdout/stderr is redirected
\n
";
print
"
-bk <string> : beekeeper identifier
\n
";
print
"
runWorker.pl v1.1
\n
";
...
...
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