Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-24950

StreamWorkerManager breaks the workmanager queue api

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 9.10, 10.1, 10.2-SNAPSHOT
    • Fix Version/s: 10.3
    • Component/s: Events / Works, Streams

      Description

      The workmanager API defines a mapping between queues and work categories in order to route workers to queues by configuration

      <queue id="myqueue">
              <name>My Queue</name>
              <maxThreads>4</maxThreads>
              <capacity>100</capacity>
              <clearCompletedAfterSeconds>300</clearCompletedAfterSeconds>
              <category>somecategory1</category>
              <category>somecategory2</category>
          </queue>
      

      https://github.com/nuxeo/nuxeo/blob/master/nuxeo-core/nuxeo-core-event/src/main/java/org/nuxeo/ecm/core/work/api/WorkQueueDescriptor.java

      The StreamWorkerManager implementation does not take that mapping into account. A Work implementation must return a category that has the same name as a queue in order to not end up in the default pool.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 4 hours
                1d 4h

                  PagerDuty

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