Sample workflow
The duplicate issue is caused by an early poll exit, which allows a record currently in creation to be picked up for processing again. This occurs due to a race condition when both instances are processed by different polls simultaneously.
Fixes for parallel polling and early poll exits were included in version 4.0.5.