mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-24 14:21:32 -07:00
14 lines
304 B
TypeScript
14 lines
304 B
TypeScript
import * as Bull from 'bull';
|
|
import deleteFile from './delete-file';
|
|
import cleanRemoteFiles from './clean-remote-files';
|
|
|
|
const jobs = {
|
|
deleteFile,
|
|
cleanRemoteFiles,
|
|
} as any;
|
|
|
|
export default function(q: Bull.Queue) {
|
|
for (const [k, v] of Object.entries(jobs)) {
|
|
q.process(k, 16, v as any);
|
|
}
|
|
}
|