mirror of
https://github.com/datarhei/core.git
synced 2025-10-05 07:57:13 +08:00
Allow to pass metadata with process config, non-cluster only
This commit is contained in:
@@ -1220,8 +1220,13 @@ func (r *restream) UpdateProcess(id TaskID, config *app.Config) error {
|
||||
// This would require a major version jump
|
||||
//t.process.CreatedAt = task.process.CreatedAt
|
||||
t.process.UpdatedAt = time.Now().Unix()
|
||||
|
||||
// Transfer the report history to the new process
|
||||
task.parser.TransferReportHistory(t.parser)
|
||||
|
||||
// Transfer the metadata to the new process
|
||||
t.metadata = task.metadata
|
||||
|
||||
r.tasks[tid] = t
|
||||
|
||||
// set filesystem cleanup rules
|
||||
|
Reference in New Issue
Block a user