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

Allow cleaning up old workflow tasks

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0-HF33, 7.1
    • Component/s: Workflow
    • Tags:
    • Upgrade notes:
      Hide

      Task documents are now deleted during workflow cleanup.

      Show
      Task documents are now deleted during workflow cleanup.
    • Sprint:
      nxNag Sprint 7.1-2
    • Story Points:
      5

      Description

      The cleanup as defined by NXP-12621 does not take care of removing the tasks that were created : only the `RouteNode`s are cleaned up.
      This is bad because :

      • Workflows create a lot of tasks
      • Tasks related queries can be slow because of complex filtering
      • mixIns
      • task delegation

      De-activating the dynamic-facets does not seem to significantly improve the situation.

      In addition, a brutal task cleanup, like removing all tasks that are `canceled` or `ended` can create inconsistencies.

      This means we should couple the Workflow and tasks cleanup :

      • identify all canceled or completed workflows
      • remove all `Task`s associated to these workflows
      • remove the associated `DocumentRoute`s

      This means we have an issue with Task created "manually" since we don't have a way to verify that there is no access in an ongoing workflow.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty

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