mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Add database optimise task (#3929)
* Add database optimise task * Wrap errors * US internationalisation --------- Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
@@ -265,6 +265,14 @@ func (s *Manager) Clean(ctx context.Context, input CleanMetadataInput) int {
|
||||
return s.JobManager.Add(ctx, "Cleaning...", &j)
|
||||
}
|
||||
|
||||
func (s *Manager) OptimiseDatabase(ctx context.Context) int {
|
||||
j := OptimiseDatabaseJob{
|
||||
Optimiser: s.Database,
|
||||
}
|
||||
|
||||
return s.JobManager.Add(ctx, "Optimising database...", &j)
|
||||
}
|
||||
|
||||
func (s *Manager) MigrateHash(ctx context.Context) int {
|
||||
j := job.MakeJobExec(func(ctx context.Context, progress *job.Progress) {
|
||||
fileNamingAlgo := config.GetInstance().GetVideoFileNamingAlgorithm()
|
||||
|
||||
Reference in New Issue
Block a user