Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ensembl-gh-mirror
ensembl-hive
Commits
0b0c9bf6
Commit
0b0c9bf6
authored
Feb 26, 2014
by
Leo Gordon
Browse files
getting stats from analysis object instead of fetching using AnalysisStatsAdaptor
parent
636b5963
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/Bio/EnsEMBL/Hive/Queen.pm
modules/Bio/EnsEMBL/Hive/Queen.pm
+4
-4
No files found.
modules/Bio/EnsEMBL/Hive/Queen.pm
View file @
0b0c9bf6
...
...
@@ -256,7 +256,7 @@ sub specialize_new_worker {
die
"
resource_class of analysis
"
.
$analysis
->
logic_name
.
"
is incompatible with this Worker's resource_class
";
}
$stats
=
$analysis
_
stats
_adaptor
->
fetch_by_analysis_id
(
$analysis_id
)
;
$stats
=
$analysis
->
stats
;
$self
->
safe_synchronize_AnalysisStats
(
$stats
);
unless
(
$special_batch
or
$force
)
{
# do we really need to run this analysis?
...
...
@@ -461,10 +461,10 @@ sub check_in_worker {
sub
reset_job_by_dbID_and_sync
{
my
(
$self
,
$job_id
)
=
@_
;
my
$job_adaptor
=
$self
->
db
->
get_AnalysisJobAdaptor
;
my
$job
=
$job_adaptor
->
reset_or_grab_job_by_dbID
(
$job_id
);
my
$job
=
$self
->
db
->
get_AnalysisJobAdaptor
->
reset_or_grab_job_by_dbID
(
$job_id
);
my
$stats
=
$job
->
analysis
->
stats
;
my
$stats
=
$self
->
db
->
get_AnalysisStatsAdaptor
->
fetch_by_analysis_id
(
$job
->
analysis_id
);
$self
->
synchronize_AnalysisStats
(
$stats
);
}
...
...
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