-
Type: Story
-
Status: Closed (View Workflow)
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: CFA 2021R6
-
Component/s: None
-
Labels:
-
Sprint:2021.R6 CloudLink Sprint 1
-
SCRUM Team:Globogym Purple Cobras
-
Story Points:8
-
Work Type Classification:Sustaining
Currently, we need to run a single instance of CloudLink's CFA Message Processor to process all the records in tbCFAMessage.
1. We need to update the CFA Message Processor, and add the Parallel.ForEach bit of code (borrowed from RedCat Service) so we can process a group of stores at a time.
RedcatPollingService.cs
public void Process(IReadOnlyCollection<StoreEntry> stores, CancellationToken cancellationToken) { var options = new ParallelOptions { MaxDegreeOfParallelism = Math.Min(Environment.ProcessorCount, 4), CancellationToken = cancellationToken }; Parallel.ForEach(stores, options, ProcessParallel); Logger.Information("All stores processed successfully."); }
- implements
-
CFAMX-14120 CloudLink - MVP
- Open
There are no Sub-Tasks for this issue.