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

Deprecate WorkManager API that don't scale, fix usages

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 9.10
    • Fix Version/s: 10.2
    • Component/s: Events / Works

      Description

      Methods that list work or workId can not scale and should be deprecated:

      • List<Work> listWork(queueId, state)
      • List<String> listWorkId(queueId, state)

      Also finding a work should not be allowed because it could be used to get a work output which is discouraged, also searching for work and returning a work cost too much, so deprecate:

      • Work find(workId, state)

      Also the getWorkState(workId) should be used in place of other usage like in:
      https://github.com/nuxeo/nuxeo/blob/master/nuxeo-features/nuxeo-platform-rendition/nuxeo-platform-rendition-core/src/main/java/org/nuxeo/ecm/platform/rendition/lazy/AbstractLazyCachableRenditionProvider.java#L266

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 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 week
                  1w