apps/meteor/app/apps/server/bridges/scheduler.ts
Function registerProcessors
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected async registerProcessors(processors: Array<IProcessor> = [], appId: string): Promise<void | Array<string>> {
const runAfterRegister: Promise<string>[] = [];
this.orch.debugLog(`The App ${appId} is registering job processors`, processors);
processors.forEach(({ id, processor, startupSetting }: IProcessor) => {
this.scheduler.define(id, _callProcessor(processor));