Initial commit: YouTube Studio Flow (backend, frontend, infrastructure, docs)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { Processor, WorkerHost } from '@nestjs/bullmq';
|
||||
import { Job } from 'bullmq';
|
||||
import { ImportsService } from '../../modules/imports/imports.service';
|
||||
import { QUEUES } from '../queues.constants';
|
||||
|
||||
@Processor(QUEUES.IMPORT)
|
||||
export class ImportProcessor extends WorkerHost {
|
||||
constructor(private readonly importsService: ImportsService) {
|
||||
super();
|
||||
}
|
||||
|
||||
async process(job: Job<{ importJobId: string }>) {
|
||||
await this.importsService.executeCommit(job.data.importJobId);
|
||||
return { imported: true };
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user