bugfix: All execution tracking IDs must now be unique
This commit is contained in:
parent
0ec2e7069b
commit
866a38f286
|
|
@ -4,6 +4,7 @@ import (
|
|||
acl "github.com/OliveTin/OliveTin/internal/acl"
|
||||
config "github.com/OliveTin/OliveTin/internal/config"
|
||||
sv "github.com/OliveTin/OliveTin/internal/stringvariables"
|
||||
"github.com/google/uuid"
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"bytes"
|
||||
|
|
@ -123,6 +124,12 @@ func (e *Executor) ExecRequest(req *ExecutionRequest) (*sync.WaitGroup, string)
|
|||
ActionIcon: "💩",
|
||||
}
|
||||
|
||||
_, foundLog := e.Logs[req.TrackingID]
|
||||
|
||||
if foundLog || req.TrackingID == "" {
|
||||
req.TrackingID = uuid.NewString()
|
||||
}
|
||||
|
||||
e.Logs[req.TrackingID] = req.logEntry
|
||||
|
||||
wg := new(sync.WaitGroup)
|
||||
|
|
|
|||
Loading…
Reference in New Issue