Skip to content

main-4849

@andrewsignori-aot andrewsignori-aot tagged this 12 Dec 18:18
- Extended the `BaseScheduler` from the `BaseQueue` to enforce all the
same basic features like `porcessSummary` and error handling, as agreed
during PR #4020.
- Started the refactor os some scheduler to be used as a baseline for
the upcoming refactors.
  - cas-supplier-integration.scheduler.ts
  - cra-process-integration.scheduler.ts
  - cra-response-integration.scheduler.ts

- Added the below code to every scheduler to be refactored.
_Note:_ **this is also responsible for the Sonarcloud duplication
issue.** **There are 23 files that have exactly the same change.**
```ts
/**
 * To be removed once the method {@link process} is implemented.
 * This method "hides" the {@link Process} decorator from the base class.
 */
async processQueue(): Promise<string | string[]> {
  throw new Error("Method not implemented.");
}

/**
 * When implemented in a derived class, process the queue job.
 * To be implemented.
 */
protected async process(): Promise<string | string[]> {
  throw new Error("Method not implemented.");
}
```
Assets 2
Loading