mirror of
https://github.com/immich-app/immich.git
synced 2025-05-31 04:05:39 -04:00
chore: standardize process method names (#2363)
This commit is contained in:
parent
91ad584064
commit
af7da9d2c9
@ -139,17 +139,17 @@ export class ThumbnailGeneratorProcessor {
|
|||||||
constructor(private mediaService: MediaService) {}
|
constructor(private mediaService: MediaService) {}
|
||||||
|
|
||||||
@Process({ name: JobName.QUEUE_GENERATE_THUMBNAILS, concurrency: 1 })
|
@Process({ name: JobName.QUEUE_GENERATE_THUMBNAILS, concurrency: 1 })
|
||||||
async handleQueueGenerateThumbnails(job: Job<IBaseJob>) {
|
async onQueueGenerateThumbnails(job: Job<IBaseJob>) {
|
||||||
await this.mediaService.handleQueueGenerateThumbnails(job.data);
|
await this.mediaService.handleQueueGenerateThumbnails(job.data);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Process({ name: JobName.GENERATE_JPEG_THUMBNAIL, concurrency: 3 })
|
@Process({ name: JobName.GENERATE_JPEG_THUMBNAIL, concurrency: 3 })
|
||||||
async handleGenerateJpegThumbnail(job: Job<IAssetJob>) {
|
async onGenerateJpegThumbnail(job: Job<IAssetJob>) {
|
||||||
await this.mediaService.handleGenerateJpegThumbnail(job.data);
|
await this.mediaService.handleGenerateJpegThumbnail(job.data);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Process({ name: JobName.GENERATE_WEBP_THUMBNAIL, concurrency: 3 })
|
@Process({ name: JobName.GENERATE_WEBP_THUMBNAIL, concurrency: 3 })
|
||||||
async handleGenerateWepbThumbnail(job: Job<IAssetJob>) {
|
async onGenerateWepbThumbnail(job: Job<IAssetJob>) {
|
||||||
await this.mediaService.handleGenerateWepbThumbnail(job.data);
|
await this.mediaService.handleGenerateWepbThumbnail(job.data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user