Discovered during debugging a test that the deactivate() method was not clearing out the queue for each step, so if the plan was re-activated the in-flight docs would be resumed potentially leading to duplicate processing when the activate step detected them as in progress and set them back to "RESTART" status.
Discovered during debugging a test that the deactivate() method was not clearing out the queue for each step, so if the plan was re-activated the in-flight docs would be resumed potentially leading to duplicate processing when the activate step detected them as in progress and set them back to "RESTART" status.