mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-01 12:06:38 +08:00
Unify organize ingest pipeline
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package handler
|
||||
|
||||
import "github.com/ShukeBta/MediaStationGo/internal/service"
|
||||
|
||||
func finishHTTPTask(task *service.TaskHandle, err error, stage, message string, metrics map[string]int64, details []string) {
|
||||
if task == nil {
|
||||
return
|
||||
}
|
||||
task.Finish(err, service.TaskUpdate{Stage: stage, Message: message, Metrics: metrics, Details: details})
|
||||
}
|
||||
Reference in New Issue
Block a user