I want to make some queries in the task processor:
@Processor('audio')
export class AudioProcessor {
constructor(private readonly entityManager: EntityManager) {
}
@Process()
public async process(job: Job<any>) {
// ! this promise never resolve
const user = await this.entityManager.findOne(User, { id: 1 });
}
}
The promise will never be resolved in the @Process()
function.
Thanks.