Refactor generate task (#1871)

* Refactor generate task
This commit is contained in:
WithoutPants
2021-10-23 10:48:42 +11:00
committed by GitHub
parent f80a5e3222
commit 0ab8d32687
10 changed files with 341 additions and 328 deletions

View File

@@ -18,7 +18,7 @@ type GenerateScreenshotTask struct {
txnManager models.TransactionManager
}
func (t *GenerateScreenshotTask) Start() {
func (t *GenerateScreenshotTask) Start(ctx context.Context) {
scenePath := t.Scene.Path
ffprobe := instance.FFProbe
probeResult, err := ffprobe.NewVideoFile(scenePath, false)