You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
324 B
12 lines
324 B
import { Process, Processor } from '@nestjs/bull';
|
|
import { Injectable } from '@nestjs/common';
|
|
import { QUEUE_NAME, ScreenshotJob } from './shared';
|
|
|
|
@Injectable()
|
|
@Processor(QUEUE_NAME)
|
|
export class ScreenshotsProcessor {
|
|
@Process()
|
|
async handleScreenshotJob(job: ScreenshotJob) {
|
|
job.moveToCompleted('abc')
|
|
}
|
|
}
|
|
|