This commit is contained in:
Alex Tran 2023-08-11 15:27:51 -05:00
parent 37b4f8455b
commit a37adc0c96
3 changed files with 1 additions and 7 deletions

View file

@ -78,7 +78,6 @@ export enum JobName {
// smart albums
SMART_ALBUM_INDEX = 'smart-album-index',
SMART_ALBUM_INSERT = 'smart-album-insert',
}
export const JOBS_ASSET_PAGINATION_SIZE = 1000;
@ -144,5 +143,4 @@ export const JOBS_TO_QUEUE: Record<JobName, QueueName> = {
// smart albums
[JobName.SMART_ALBUM_INDEX]: QueueName.SMART_ALBUM,
[JobName.SMART_ALBUM_INSERT]: QueueName.SMART_ALBUM,
};

View file

@ -84,8 +84,7 @@ export type JobItem =
| { name: JobName.SEARCH_REMOVE_FACE; data: IAssetFaceJob }
// Smart album
| { name: JobName.SMART_ALBUM_INDEX; data: ISmartAlbumIndexJob }
| { name: JobName.SMART_ALBUM_INSERT; data: ISmartAlbumInsertJob };
| { name: JobName.SMART_ALBUM_INDEX; data: ISmartAlbumIndexJob };
export type JobHandler<T = any> = (data: T) => boolean | Promise<boolean>;

View file

@ -76,9 +76,6 @@ export class AppService {
[JobName.SMART_ALBUM_INDEX]: (data) => {
throw new Error('Not implemented SMART_ALBUM_INDEX');
},
[JobName.SMART_ALBUM_INSERT]: (data) => {
throw new Error('Not implemented SMART_ALBUM_INSERT');
},
});
process.on('uncaughtException', (error: Error | any) => {