UNPKG

@sotatech/nest-taskflow

Version:

A task flow management library for NestJS with Redis Pub/Sub integration.

16 lines (15 loc) 496 B
import { RedisModuleOptions } from '@liaoliaots/nestjs-redis'; export interface TaskFlowModuleOptions { redis: RedisModuleOptions; jobTimeout?: number; } export interface TaskFlowModuleAsyncOptions { useFactory: (...args: any[]) => Promise<TaskFlowModuleOptions> | TaskFlowModuleOptions; inject?: any[]; imports?: any[]; } export interface OnTaskVerifiedOptions { maxAttempts?: number; backoffStrategy?: 'exponential' | 'linear' | 'fixed'; backoffTime?: number; }