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

Allow WorkManager scheduling to use a priority queue

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.7.1
    • Component/s: Core
    • Impact type:
      Configuration format change
    • Upgrade notes:
      Hide

      When specifying the configuration for a Work queue, you can add:

      <usePriority>true</usePriority>

      to make the queue be a PriorityQueue. In this case the Work instances inserted in the queue must be Comparable with each other.

      Show
      When specifying the configuration for a Work queue, you can add: <usePriority>true</usePriority> to make the queue be a PriorityQueue. In this case the Work instances inserted in the queue must be Comparable with each other.

      Description

      Some Work instances would benefit from being queued according to a priority ordering.

      An example would be fulltext indexing, which we'd want single-threaded but where the "quick" metadata changes should go before the "slower" fulltext extraction from binaries.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fguillaume Florent Guillaume
                Reporter:
                fguillaume Florent Guillaume
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: