1.0.0-alpha.1 • Published 1 year ago

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

Weekly downloads
214
License
MIT
Repository
github
Last release
1 year 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

1 year ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago