mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
fixing preview filling job's logs
This commit is contained in:
parent
4d7dfca26a
commit
77767f27b0
@ -9,7 +9,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- "./pigallery2/benchmark_config:/app/data/config" # CHANGE ME
|
- "./pigallery2/benchmark_config:/app/data/config" # CHANGE ME
|
||||||
- "db-benchmark-data:/app/data/db"
|
- "db-benchmark-data:/app/data/db"
|
||||||
- "./pigallery2/images:/app/data/images" # CHANGE ME
|
- "./pigallery2/images:/app/data/images" # CHANGE ME, ':ro' mean read-only
|
||||||
- "./pigallery2/tmp:/app/data/tmp" # CHANGE ME
|
- "./pigallery2/tmp:/app/data/tmp" # CHANGE ME
|
||||||
expose:
|
expose:
|
||||||
- "80"
|
- "80"
|
||||||
|
@ -20,6 +20,7 @@ export class PreviewFillingJob extends Job {
|
|||||||
|
|
||||||
protected async step(): Promise<boolean> {
|
protected async step(): Promise<boolean> {
|
||||||
if (!this.directoryToSetPreview) {
|
if (!this.directoryToSetPreview) {
|
||||||
|
this.Progress.log('Loading Directories to process');
|
||||||
this.directoryToSetPreview = await ObjectManagers.getInstance().PreviewManager.getPartialDirsWithoutPreviews();
|
this.directoryToSetPreview = await ObjectManagers.getInstance().PreviewManager.getPartialDirsWithoutPreviews();
|
||||||
this.Progress.Left = this.directoryToSetPreview.length + 2;
|
this.Progress.Left = this.directoryToSetPreview.length + 2;
|
||||||
return true;
|
return true;
|
||||||
@ -65,7 +66,7 @@ export class PreviewFillingJob extends Job {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const directory = this.directoryToSetPreview.shift();
|
const directory = this.directoryToSetPreview.shift();
|
||||||
this.Progress.log('Setting preview: ' + directory.path + '/' + directory.name);
|
this.Progress.log('Setting preview: ' + directory.path + directory.name);
|
||||||
this.Progress.Left = this.directoryToSetPreview.length;
|
this.Progress.Left = this.directoryToSetPreview.length;
|
||||||
|
|
||||||
await ObjectManagers.getInstance().PreviewManager.setAndGetPreviewForDirectory(directory);
|
await ObjectManagers.getInstance().PreviewManager.setAndGetPreviewForDirectory(directory);
|
||||||
|
Loading…
Reference in New Issue
Block a user