Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Job Queues
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Libraries
Go
Services
Job Queues
Commits
f6d080db
Verified
Commit
f6d080db
authored
4 months ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
fix: type in workerinfo json
parent
053fada7
Branches
master
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
worker.go
+3
-2
3 additions, 2 deletions
worker.go
with
3 additions
and
2 deletions
worker.go
+
3
−
2
View file @
f6d080db
...
...
@@ -9,9 +9,10 @@ import (
"context"
"errors"
"fmt"
"github.com/google/uuid"
"sync"
"time"
"github.com/google/uuid"
)
type
WorkerStatus
int
...
...
@@ -46,7 +47,7 @@ type Statistic struct {
JobsAssigned
int
`json:"jobsAssigned"`
JobsCompleted
int
`json:"jobsCompleted"`
FailedJobs
int
`json:"failedJobs"`
TotalExecutionTime
time
.
Duration
`json:"totalExecution
_t
ime"`
TotalExecutionTime
time
.
Duration
`json:"totalExecution
T
ime"`
}
func
(
s
*
Statistic
)
AverageExecutionTime
()
time
.
Duration
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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