Add option to generate image thumbnails during generate (#4602)

* Add option to generate image thumbnails
* Limit number of concurrent image thumbnail generation ops
This commit is contained in:
WithoutPants
2024-02-22 11:19:23 +11:00
committed by GitHub
parent c4a91d15a6
commit a8c909e0c9
14 changed files with 332 additions and 222 deletions

View File

@@ -9,6 +9,7 @@ import (
"strings"
"time"
"github.com/remeh/sizedwaitgroup"
"github.com/stashapp/stash/internal/desktop"
"github.com/stashapp/stash/internal/dlna"
"github.com/stashapp/stash/internal/log"
@@ -80,6 +81,8 @@ func Initialize(cfg *config.Config, l *log.Logger) (*Manager, error) {
Paths: mgrPaths,
ImageThumbnailGenerateWaitGroup: sizedwaitgroup.New(1),
JobManager: initJobManager(cfg),
ReadLockManager: fsutil.NewReadLockManager(),