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
555e1049
Commit
555e1049
authored
Jun 14, 2004
by
Jessica Severin
Browse files
changed adaptor to queen to make this part of the API clearer
parent
f8ffcf48
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
modules/Bio/EnsEMBL/Hive/Worker.pm
modules/Bio/EnsEMBL/Hive/Worker.pm
+5
-5
No files found.
modules/Bio/EnsEMBL/Hive/Worker.pm
View file @
555e1049
...
...
@@ -77,10 +77,10 @@ sub init {
return
$self
;
}
sub
adaptor
{
sub
queen
{
my
$self
=
shift
;
$self
->
{'
_
adaptor
'}
=
shift
if
(
@
_
);
return
$self
->
{'
_
adaptor
'};
$self
->
{'
_
queen
'}
=
shift
if
(
@
_
);
return
$self
->
{'
_
queen
'};
}
sub
db
{
my
$self
=
shift
;
...
...
@@ -278,7 +278,7 @@ sub run
my
$claim
=
$jobDBA
->
claim_jobs_for_worker
(
$self
);
my
$jobs
=
$jobDBA
->
fetch_by_claim_analysis
(
$claim
,
$self
->
analysis
->
dbID
);
$self
->
adaptor
->
worker_check_in
(
$self
);
$self
->
queen
->
worker_check_in
(
$self
);
$self
->
cause_of_death
('
NO_WORK
')
unless
(
scalar
@
{
$jobs
});
...
...
@@ -300,7 +300,7 @@ sub run
if
(
$self
->
cause_of_death
)
{
$alive
=
undef
;
}
}
$self
->
adaptor
->
register_worker_death
(
$self
);
$self
->
queen
->
register_worker_death
(
$self
);
if
(
$self
->
output_dir
())
{
close
STDOUT
;
...
...
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