Duplicated instances created- concurrency issue

Hello,
I got two process instances created with the same business key and variables if I accidently hit the button for start process runtimeService.startProcessInstanceByKey(workflowKey, businessKey, variables)
I tried it using jmeter and unfortunately got the same 2 process instance created twice.

  • I tries to query if the business key is only not exist create it it worked 200 OK for the first request and 401 for the other, but didn’t create any process instances on Camunda just on my db.