Skip to content

Commit

Permalink
bug fix for double starts
Browse files Browse the repository at this point in the history
  • Loading branch information
jmmcatee committed Oct 2, 2019
1 parent 97c216e commit 4d71ef5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/queue/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,10 @@ func (q *Queue) keeper() {
}).Debug("Found empty resource hardware")

// This resource is free, so lets find a job for it
jobs, err := q.db.GetAllJobs()
if err != nil {
log.Error(err)
}
JobLoop:
for jobKey := range jobs {
logger := log.WithFields(log.Fields{
Expand Down
1 change: 1 addition & 0 deletions common/queue/stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ func (db *JobDB) UpdateJob(j common.Job) error {
logger := log.WithFields(log.Fields{
"uuid": j.UUID,
"name": j.Name,
"status": j.Status,
"resid": j.ResAssigned,
"params": common.CleanJobParamsForLogging(j),
})
Expand Down
Binary file removed common/queue/test.db
Binary file not shown.

0 comments on commit 4d71ef5

Please sign in to comment.