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

StreamWorkManager must be able to return the state of workId to ease migration

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 9.10
    • Fix Version/s: 9.10-HF11, 10.2
    • Component/s: Streams
    • Release Notes Description:
      Hide

      StreamWorkManager now provides state information.

      By using nuxeo.stream.work.storestate.enabled=true, it is now possible to get information of a given work when using the StreamWorkManager

      Show
      StreamWorkManager now provides state information. By using nuxeo.stream.work.storestate.enabled=true, it is now possible to get information of a given work when using the StreamWorkManager
    • Backlog priority:
      600
    • Sprint:
      nxcore 10.2.7
    • Story Points:
      5

      Description

      For scalabilities reasons the current StreamWorkManager don't implement getWorkState, find, listWork and listWorkIds.

      But some existing work implementation requires to get the state of an existing workId.

      The necessary API will be an implementation of getWorkState.

      A possible solution is to use a KeyValue store to save work states. The key can be the workId, the value the state and we can use a TTL of ~1h so we don't keep too much states.

      The state will be update on schedule, running and completed.

      A backport on 9.10 is required.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

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