mirror of
https://github.com/datarhei/core.git
synced 2025-09-27 04:16:25 +08:00
Fix log transfer
This commit is contained in:
@@ -875,12 +875,6 @@ func (r *restream) UpdateProcess(id string, config *app.Config) error {
|
|||||||
return ErrUnknownProcess
|
return ErrUnknownProcess
|
||||||
}
|
}
|
||||||
|
|
||||||
// This would require a major version jump
|
|
||||||
//t.process.CreatedAt = task.process.CreatedAt
|
|
||||||
t.process.UpdatedAt = time.Now().Unix()
|
|
||||||
task.parser.TransferReportHistory(t.parser)
|
|
||||||
t.process.Order = task.process.Order
|
|
||||||
|
|
||||||
if id != t.id {
|
if id != t.id {
|
||||||
_, ok := r.tasks[t.id]
|
_, ok := r.tasks[t.id]
|
||||||
if ok {
|
if ok {
|
||||||
@@ -888,6 +882,8 @@ func (r *restream) UpdateProcess(id string, config *app.Config) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
t.process.Order = task.process.Order
|
||||||
|
|
||||||
if err := r.stopProcess(id); err != nil {
|
if err := r.stopProcess(id); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@@ -896,6 +892,11 @@ func (r *restream) UpdateProcess(id string, config *app.Config) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This would require a major version jump
|
||||||
|
//t.process.CreatedAt = task.process.CreatedAt
|
||||||
|
t.process.UpdatedAt = time.Now().Unix()
|
||||||
|
task.parser.TransferReportHistory(t.parser)
|
||||||
|
|
||||||
r.tasks[t.id] = t
|
r.tasks[t.id] = t
|
||||||
|
|
||||||
// set filesystem cleanup rules
|
// set filesystem cleanup rules
|
||||||
|
Reference in New Issue
Block a user