mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-12 09:05:39 +00:00
bugfix: All execution tracking IDs must now be unique
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
|||||||
acl "github.com/OliveTin/OliveTin/internal/acl"
|
acl "github.com/OliveTin/OliveTin/internal/acl"
|
||||||
config "github.com/OliveTin/OliveTin/internal/config"
|
config "github.com/OliveTin/OliveTin/internal/config"
|
||||||
sv "github.com/OliveTin/OliveTin/internal/stringvariables"
|
sv "github.com/OliveTin/OliveTin/internal/stringvariables"
|
||||||
|
"github.com/google/uuid"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
"bytes"
|
"bytes"
|
||||||
@@ -123,6 +124,12 @@ func (e *Executor) ExecRequest(req *ExecutionRequest) (*sync.WaitGroup, string)
|
|||||||
ActionIcon: "💩",
|
ActionIcon: "💩",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_, foundLog := e.Logs[req.TrackingID]
|
||||||
|
|
||||||
|
if foundLog || req.TrackingID == "" {
|
||||||
|
req.TrackingID = uuid.NewString()
|
||||||
|
}
|
||||||
|
|
||||||
e.Logs[req.TrackingID] = req.logEntry
|
e.Logs[req.TrackingID] = req.logEntry
|
||||||
|
|
||||||
wg := new(sync.WaitGroup)
|
wg := new(sync.WaitGroup)
|
||||||
|
|||||||
Reference in New Issue
Block a user