Add queue types (#7504)
This commit is contained in:
parent
164959a0c5
commit
591a5c277c
18 changed files with 97 additions and 50 deletions
|
|
@ -1,8 +1,8 @@
|
|||
import * as Queue from 'bull';
|
||||
import * as Bull from 'bull';
|
||||
import config from '@/config';
|
||||
|
||||
export function initialize(name: string, limitPerSec = -1) {
|
||||
return new Queue(name, {
|
||||
export function initialize<T>(name: string, limitPerSec = -1) {
|
||||
return new Bull<T>(name, {
|
||||
redis: {
|
||||
port: config.redis.port,
|
||||
host: config.redis.host,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue