Browse Source

Merge pull request #6816 from nocodb/nc-fix/job-src

fix: jobs service
pull/6847/head
mertmit 1 year ago committed by GitHub
parent
commit
804edeeacf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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',
UpdateModelStat = 'update-model-stat',
UpdateWsStat = 'update-ws-stats',
UpdateSrcStat = 'update-source-stat',
}
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()
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
async onModuleInit() {

Loading…
Cancel
Save