fix duplicate log

This commit is contained in:
speatzle 2024-05-09 19:12:59 +02:00
parent 12e83aa8d2
commit 69b2d96c92

View file

@ -63,6 +63,8 @@ func Get(r types.TaskStatusRequest) (*types.Task, error) {
// Send only new logs if there are any
if len(res.Log) >= r.LogOffset {
res.Log = res.Log[r.LogOffset:]
} else {
res.Log = []string{}
}
return &res, nil