mirror of
https://github.com/datarhei/core.git
synced 2025-09-26 20:11:29 +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
|
||||
}
|
||||
|
||||
// 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 {
|
||||
_, ok := r.tasks[t.id]
|
||||
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 {
|
||||
return err
|
||||
}
|
||||
@@ -896,6 +892,11 @@ func (r *restream) UpdateProcess(id string, config *app.Config) error {
|
||||
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
|
||||
|
||||
// set filesystem cleanup rules
|
||||
|
Reference in New Issue
Block a user