Fix maintaining the metadata on process config update (datarhei/restreamer#698)

This commit is contained in:
Ingo Oppermann
2024-03-08 16:33:25 +01:00
parent 40a98ca70e
commit ccd9a5fbc1

View File

@@ -897,6 +897,9 @@ func (r *restream) UpdateProcess(id string, config *app.Config) error {
t.process.UpdatedAt = time.Now().Unix() t.process.UpdatedAt = time.Now().Unix()
task.parser.TransferReportHistory(t.parser) task.parser.TransferReportHistory(t.parser)
// Transfer the metadata to the new process
t.metadata = task.metadata
r.tasks[t.id] = t r.tasks[t.id] = t
// set filesystem cleanup rules // set filesystem cleanup rules