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. screenshot-4.png
          42 kB
          Brent Jacobz
        2. screenshot-3.png
          21 kB
          Brent Jacobz
        3. screenshot-2.png
          21 kB
          Brent Jacobz
        4. screenshot-1.png
          22 kB
          Brent Jacobz
        5. image-2021-07-14-16-03-09-029.png
          45 kB
          Sree Surapaneni
        6. image-2021-07-14-16-01-10-797.png
          2 kB
          Sree Surapaneni
        7. image-2021-07-14-16-00-01-660.png
          72 kB
          Sree Surapaneni
        8. image-2021-07-14-15-59-18-901.png
          72 kB
          Sree Surapaneni

          Issue Links

            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.