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

Workflow is blocked when two actors validate their task at the same time

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.10, 2021.0
    • Fix Version/s: 10.10-HF64, 2021.24
    • Component/s: Workflow
    • Release Notes Summary:
      Task completions of a given workflow are now synchronized
    • Backlog priority:
      750
    • Sprint:
      nxplatform #65, nxplatform #66
    • Story Points:
      5

      Description

      If 2 actors validate their task within 12ms of each other, the workflow does not resume.
      Steps to reproduce
      1) Start parallel workflow on a document
      2) Assign 2 actors to approve
      3) Have both actors approve their task at the same time
      4) Notice that the workflow doesn't resume

      See the following messages in the logs

      2022-05-04T17:33:30,096 DEBUG [http-nio-0.0.0.0-8080-exec-1] [org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingServiceImpl] Completing task 12f2b15d-5deb-4b86-89f8-ea2d875c990f associated to node null for workflow instance fd44b278-0867-4ea2-ab4b-ba95a366740b
      2022-05-04T17:33:30,104 DEBUG [http-nio-0.0.0.0-8080-exec-2] [org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingServiceImpl] Completing task d481cf2b-a683-4cbc-96f1-a566d3d1cc85 associated to node null for workflow instance fd44b278-0867-4ea2-ab4b-ba95a366740b
      2022-05-04T17:33:30,154 INFO  [http-nio-0.0.0.0-8080-exec-1] [org.nuxeo.ecm.platform.routing.core.impl.GraphRunner] Node WF_Approve-20200407143329964-multiple-taskhas open tasks, the workflow can not be resumed for now.
      2022-05-04T17:33:30,160 INFO  [http-nio-0.0.0.0-8080-exec-2] [org.nuxeo.ecm.platform.routing.core.impl.GraphRunner] Node WF_Approve-20200407143329964-multiple-taskhas open tasks, the workflow can not be resumed for now.
      

      It seems that when tasks are completed too close together, when the check is done to see if there are still open tasks, both still show that there are and the workflow doesn't resume

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: