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
8f66fcc1
Commit
8f66fcc1
authored
11 years ago
by
Leo Gordon
Browse files
Options
Downloads
Patches
Plain Diff
bugfix: added the missing prev_job_id accessor method; also added a call to if from new()
parent
0486d885
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/Bio/EnsEMBL/Hive/AnalysisJob.pm
+9
-2
9 additions, 2 deletions
modules/Bio/EnsEMBL/Hive/AnalysisJob.pm
with
9 additions
and
2 deletions
modules/Bio/EnsEMBL/Hive/AnalysisJob.pm
+
9
−
2
View file @
8f66fcc1
...
...
@@ -54,9 +54,10 @@ sub new {
my
$self
=
$class
->
SUPER::
new
(
@
_
);
# deal with Storable stuff
my
(
$analysis_id
,
$input_id
,
$param_id_stack
,
$accu_id_stack
,
$worker_id
,
$status
,
$retry_count
,
$completed
,
$runtime_msec
,
$query_count
,
$semaphore_count
,
$semaphored_job_id
)
=
rearrange
([
qw(analysis_id input_id param_id_stack accu_id_stack worker_id status retry_count completed runtime_msec query_count semaphore_count semaphored_job_id)
],
@
_
);
my
(
$prev_job_id
,
$analysis_id
,
$input_id
,
$param_id_stack
,
$accu_id_stack
,
$worker_id
,
$status
,
$retry_count
,
$completed
,
$runtime_msec
,
$query_count
,
$semaphore_count
,
$semaphored_job_id
)
=
rearrange
([
qw(
prev_job_id
analysis_id input_id param_id_stack accu_id_stack worker_id status retry_count completed runtime_msec query_count semaphore_count semaphored_job_id)
],
@
_
);
$self
->
prev_job_id
(
$prev_job_id
)
if
(
defined
(
$prev_job_id
));
$self
->
analysis_id
(
$analysis_id
)
if
(
defined
(
$analysis_id
));
$self
->
input_id
(
$input_id
)
if
(
defined
(
$input_id
));
$self
->
param_id_stack
(
$param_id_stack
)
if
(
defined
(
$param_id_stack
));
...
...
@@ -74,6 +75,12 @@ sub new {
}
sub
prev_job_id
{
my
$self
=
shift
;
$self
->
{'
_prev_job_id
'}
=
shift
if
(
@
_
);
return
$self
->
{'
_prev_job_id
'};
}
sub
analysis_id
{
my
$self
=
shift
;
$self
->
{'
_analysis_id
'}
=
shift
if
(
@
_
);
...
...
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