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

Be able to trigger an action after completion of a group of Works

    Details

    • Backlog priority:
      500
    • Upgrade notes:
      Hide

      bmExecute(Transfer transfer) deprecated since 3.0.0, use bmExecute() instead

      Show
      bmExecute(Transfer transfer) deprecated since 3.0.0, use bmExecute() instead
    • Team:
      PLATFORM
    • Sprint:
      nxplatform 11.1.21, nxplatform 11.1.22
    • Story Points:
      3

      Description

      Some Works are scheduled in a group and we want to have a trigger on completion, like compute all the rendering for a document then fire a document rendition done Event.

      Note that this is not an idempotent or coalescing work where we are interested in only running the work once, here we want all Works of the group to be executed.

      The StreamWorkManager implementation is straightforward:

      • all the Works of the group will use the same partitionKey (work Id could be different in order to keep existing implementation for default WM)
      • like for the coalescing work when submitting such a work the offset is persisted in the KeyValue store (key=partitionKey, value=offset)
      • after executing the Work the computation will compare its record offset with the value in the KV, if they are equals this means that this is the last Work and the trigger action can be executed.

        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 - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 days, 1 hour
                  3d 1h

                    PagerDuty

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