Allow to pass metadata with process config, non-cluster only

This commit is contained in:
Ingo Oppermann
2023-06-01 21:24:33 +02:00
parent d652fd213b
commit f59a63320c
7 changed files with 228 additions and 38 deletions

View File

@@ -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