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

Prevent multiple execution of work with same id in Stream WorkManager

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9.3
    • Component/s: Streams

      Description

      Default WorkManager impl use the workId as key in a map to store works, as a results submitting multiple time a work with the same ids don't create duplicate if the works are in pending/running state.

      The Stream impl should also prevent multiple execution of works with same ids.
      As described in NXP-23374 appling idempotence to workmanager is easy with stream, this will results in the same behavior as the default WorkManager but enhanced so that it works even for completed works.

      To do this we just need to keep the last N ids processed in the WorkComputation and skip work with a known id.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 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 - 2 days
                  2d