Skip to content

Commit

Permalink
fix(tasks): re-run task for boltdb
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftin committed Jan 24, 2025
1 parent 1a48d29 commit a191e03
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion db/bolt/task.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package bolt

import (
"time"

"github.com/semaphoreui/semaphore/db"
"go.etcd.io/bbolt"
"time"
)

func (d *BoltDb) CreateTaskStage(stage db.TaskStage) (db.TaskStage, error) {
Expand Down Expand Up @@ -91,6 +92,7 @@ func (d *BoltDb) clearTasks(projectID int, templateID int, maxTasks int) {

func (d *BoltDb) CreateTask(task db.Task, maxTasks int) (newTask db.Task, err error) {
task.Created = time.Now()
task.ID = 0
res, err := d.createObject(0, db.TaskProps, task)
if err != nil {
return
Expand Down

0 comments on commit a191e03

Please sign in to comment.