This commit is contained in:
smart_ex 2022-05-10 18:52:07 +10:00
parent 3c5eaa2c4b
commit 4595085d61
58 changed files with 17604 additions and 1070 deletions

8
src/queue/worker.ts Normal file
View file

@ -0,0 +1,8 @@
import { redis } from '../modules';
import { Worker } from 'bullmq';
const connection = redis.getClient();
const worker = new Worker('proof', async (job) => {
// do some processing
}, { connection });