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
916bc707
Commit
916bc707
authored
14 years ago
by
Leo Gordon
Browse files
Options
Downloads
Patches
Plain Diff
time your analyses with a procedure
parent
c4120291
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sql/procedures.sql
+10
-0
10 additions, 0 deletions
sql/procedures.sql
with
10 additions
and
0 deletions
sql/procedures.sql
+
10
−
0
View file @
916bc707
...
...
@@ -39,6 +39,16 @@ CREATE PROCEDURE show_progress_analysis(IN param_logic_name char(64))
AND
a
.
logic_name
=
param_logic_name
GROUP
BY
j
.
status
,
j
.
retry_count
;
####
time
progress
of
an
analysis
or
group
of
analyses
(
given
by
a
name
pattern
)
##########
DROP
PROCEDURE
IF
EXISTS
time_analysis
;
CREATE
PROCEDURE
time_analysis
(
IN
param_logic_name
char
(
64
))
SELECT
(
UNIX_TIMESTAMP
(
max
(
last_check_in
))
-
UNIX_TIMESTAMP
(
min
(
born
)))
/
3600
/
24
measured_in_days
,
(
UNIX_TIMESTAMP
(
max
(
last_check_in
))
-
UNIX_TIMESTAMP
(
min
(
born
)))
/
3600
measured_in_hours
FROM
hive
JOIN
analysis
USING
(
analysis_id
)
WHERE
logic_name
like
param_logic_name
;
##############
reset
failed
jobs
for
analysis
#############################################
DROP
PROCEDURE
IF
EXISTS
reset_failed_jobs_for_analysis
;
...
...
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