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
8def947f
Commit
8def947f
authored
14 years ago
by
Leo Gordon
Browse files
Options
Downloads
Patches
Plain Diff
unification of names
parent
fdf07732
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
scripts/beekeeper.pl
+2
-2
2 additions, 2 deletions
scripts/beekeeper.pl
scripts/runWorker.pl
+10
-10
10 additions, 10 deletions
scripts/runWorker.pl
with
12 additions
and
12 deletions
scripts/beekeeper.pl
+
2
−
2
View file @
8def947f
...
...
@@ -78,7 +78,7 @@ sub main {
'
loop
'
=>
\
$loopit
,
'
max_loops=i
'
=>
\
$max_loops
,
'
run
'
=>
\
$run
,
'
run_job_id=i
'
=>
\
$self
->
{'
run_job_id
'},
'
job_id|
run_job_id=i
'
=>
\
$self
->
{'
run_job_id
'},
'
sleep=f
'
=>
\
$self
->
{'
sleep_minutes
'},
# meadow control
...
...
@@ -481,7 +481,7 @@ __DATA__
-loop : run autonomously, loops and sleeps
-max_loops <num> : perform max this # of loops in autonomous mode
-run : run 1 iteration of automation loop
-
run_
job_id <job_id> : run 1 iteration for this job_id
-job_id <job_id>
: run 1 iteration for this job_id
-sleep <num> : when looping, sleep <num> minutes (default 2min)
=head2 Meadow control
...
...
This diff is collapsed.
Click to expand it.
scripts/runWorker.pl
+
10
−
10
View file @
8def947f
...
...
@@ -30,7 +30,7 @@ $self->{'analysis_id'} = undef; # less specific specialization
$self
->
{'
logic_name
'}
=
undef
;
# (---------,,---------------)
$self
->
{'
rc_id
'}
=
undef
;
# least specific specialization
$self
->
{'
outdir
'}
=
undef
;
$self
->
{'
out
put_
dir
'}
=
undef
;
$self
->
{'
beekeeper
'}
=
undef
;
$self
->
{'
process_id
'}
=
undef
;
$self
->
{'
debug
'}
=
undef
;
...
...
@@ -63,7 +63,7 @@ GetOptions(
'
batch_size=i
'
=>
\
$self
->
{'
batch_size
'},
'
limit=i
'
=>
\
$self
->
{'
job_limit
'},
'
lifespan=i
'
=>
\
$self
->
{'
lifespan
'},
'
outdir=s
'
=>
\
$self
->
{'
outdir
'},
'
output_dir|
outdir=s
'
=>
\
$self
->
{'
out
put_
dir
'},
# keep compatibility with the old name
'
bk=s
'
=>
\
$self
->
{'
beekeeper
'},
# deprecated and ignored
'
pid=s
'
=>
\
$self
->
{'
process_id
'},
'
input_id=s
'
=>
\
$self
->
{'
input_id
'},
...
...
@@ -152,7 +152,7 @@ if($self->{'analysis_id'} and $self->{'input_id'}) {
print
("
creating job outside database
\n
");
$self
->
{'
analysis_job
'}
->
print_job
;
$self
->
{'
debug
'}
=
1
unless
(
defined
(
$self
->
{'
debug
'}));
$self
->
{'
outdir
'}
=
''
unless
(
defined
(
$self
->
{'
outdir
'}));
$self
->
{'
out
put_
dir
'}
=
''
unless
(
defined
(
$self
->
{'
out
put_
dir
'}));
}
if
(
$self
->
{'
job_id
'})
{
...
...
@@ -177,13 +177,13 @@ unless($worker) {
$worker
->
debug
(
$self
->
{'
debug
'})
if
(
$self
->
{'
debug
'});
if
(
defined
(
$self
->
{'
outdir
'}))
{
$worker
->
output_dir
(
$self
->
{'
outdir
'});
}
else
{
my
$arrRef
=
$DBA
->
get_MetaContainer
->
list_value_by_key
(
'
hive_output_dir
'
);
if
(
@$arrRef
)
{
$worker
->
output_dir
(
destringify
(
$arrRef
->
[
0
])
);
}
unless
(
defined
(
$self
->
{'
output_dir
'}))
{
my
$arrRef
=
$DBA
->
get_MetaContainer
->
list_value_by_key
(
'
hive_output_dir
'
);
if
(
@$arrRef
)
{
$self
->
{'
output_dir
'}
=
destringify
(
$arrRef
->
[
0
]);
}
}
$worker
->
output_dir
(
$self
->
{'
output_dir
'});
if
(
$self
->
{'
batch_size
'})
{
$worker
->
set_worker_batch_size
(
$self
->
{'
batch_size
'});
...
...
@@ -318,7 +318,7 @@ __DATA__
-batch_size <num> : #jobs to claim at a time
-limit <num> : #jobs to run before worker can die naturally
-lifespan <num> : number of minutes this worker is allowed to run
-outdir <path>
: directory where stdout/stderr is redirected
-out
put_
dir <path> : directory where stdout/stderr is redirected
-bk <string> : beekeeper identifier (deprecated and ignored)
-pid <string> : externally set process_id descriptor (e.g. lsf job_id, array_id)
-input_id <string> : test input_id on specified analysis (analysis_id or logic_name)
...
...
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