1.0.0-alpha.1 • Published 2 years ago

@enviabybus/active-job-processor-bull-adapter v1.0.0-alpha.1

Weekly downloads
214
License
MIT
Repository
github
Last release
2 years ago

ActiveJobProcessor

Bull ActiveJobProcessor adapter used for development

Install

npm install @enviabybus/active-job-processor-bull-adapter

How to use

// src/index.ts

import ActiveJobProcessor, { initActiveJobProcessor } from '@enviabybus/active-job-processor';
import ActiveJobProcessorBullAdapter from '@enviabybus/active-job-processor-bull-adapter';

import PingJob from './jobs/ping.job.ts'

initActiveJobProcessor(path.resolve(__dirname, './jobs'));

const adapter = new ActiveJobProcessorBullAdapter({ host: 'localhost' });
const jobProcessor = new ActiveJobProcessor(adapter);

jobProcessor.performLater(PingJob, ['pong']);
jobProcessor.performIn(5000, PingJob, ['pong']);
jobProcessor.performAt(new Date(), PingJob, ['pong']);
1.0.0-alpha.1

2 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago