Browse Source

fix: jobs service

pull/6816/head
mertmit 1 year ago
parent
commit
7bc7bce2d6
  1. 1
      packages/nocodb/src/interface/Jobs.ts
  2. 2
      packages/nocodb/src/modules/jobs/redis/jobs.service.ts

1
packages/nocodb/src/interface/Jobs.ts

@ -9,6 +9,7 @@ export enum JobTypes {
BaseDelete = 'base-delete', BaseDelete = 'base-delete',
UpdateModelStat = 'update-model-stat', UpdateModelStat = 'update-model-stat',
UpdateWsStat = 'update-ws-stats', UpdateWsStat = 'update-ws-stats',
UpdateSrcStat = 'update-source-stat',
} }
export enum JobStatus { export enum JobStatus {

2
packages/nocodb/src/modules/jobs/redis/jobs.service.ts

@ -6,7 +6,7 @@ import { JOBS_QUEUE, JobStatus } from '~/interface/Jobs';
@Injectable() @Injectable()
export class JobsService implements OnModuleInit { export class JobsService implements OnModuleInit {
constructor(@InjectQueue(JOBS_QUEUE) private readonly jobsQueue: Queue) {} constructor(@InjectQueue(JOBS_QUEUE) protected readonly jobsQueue: Queue) {}
// pause primary instance queue // pause primary instance queue
async onModuleInit() { async onModuleInit() {

Loading…
Cancel
Save