Serialize transcode jobs

This commit is contained in:
Carl Pearson
2024-09-11 05:42:59 -06:00
parent 663a6f5e88
commit e81362b531
6 changed files with 294 additions and 157 deletions

View File

@@ -51,7 +51,7 @@ func main() {
}
// Migrate the schema
db.AutoMigrate(&Original{}, &Video{}, &Audio{}, &User{}, &TempURL{})
db.AutoMigrate(&Original{}, &Video{}, &Audio{}, &User{}, &TempURL{}, &Transcode{})
go PeriodicCleanup()
// create a user
@@ -108,6 +108,9 @@ func main() {
Secure: false, // needed for session to work over http
}
// start the transcode worker
go transcodeWorker()
// Start server
e.Logger.Fatal(e.Start(":8080"))
}