Uploaded image for project: 'CFA MX '
  1. CFA MX
  2. CFAMX-15496

CloudLink - Update Message Processor to process multiple stores in parallel

    Details

    • Sprint:
      2021.R6 CloudLink Sprint 1
    • SCRUM Team:
      Globogym Purple Cobras
    • Story Points:
      8
    • Work Type Classification:
      Sustaining

      Description

      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.");
      }
      

        Attachments

        1. image-2021-07-14-15-59-18-901.png
          image-2021-07-14-15-59-18-901.png
          72 kB
        2. image-2021-07-14-16-00-01-660.png
          image-2021-07-14-16-00-01-660.png
          72 kB
        3. image-2021-07-14-16-01-10-797.png
          image-2021-07-14-16-01-10-797.png
          2 kB
        4. image-2021-07-14-16-03-09-029.png
          image-2021-07-14-16-03-09-029.png
          45 kB
        5. screenshot-1.png
          screenshot-1.png
          22 kB
        6. screenshot-2.png
          screenshot-2.png
          21 kB
        7. screenshot-3.png
          screenshot-3.png
          21 kB
        8. screenshot-4.png
          screenshot-4.png
          42 kB

          Issue Links

          There are no Sub-Tasks for this issue.

            Activity

              People

              • Assignee:
                Gareth.Leibbrandt Gareth Leibbrandt (Inactive)
                Reporter:
                brent.jacobz Brent Jacobz (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 19.5h Original Estimate - 19.5h
                  19.5h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20h 20m
                  20h 20m

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.