Troubleshooting Workflow Executions - Race Conditions
A Race Condition is when two (or more) updates happen at the same time (in the same second). The two changes "race" and they might execute in a different order than they should…
A Race Condition is when two (or more) updates happen at the same time (in the same second). The two changes "race" and they might execute in a different order than they should, or one might signal that it executed but it really didn't.
Example
Race Condition: Add Tag Executed But Not AddedIn this example, we can see that the tag was added successfully to this contact in the workflow execution logs. However, when we check the contact record, there is no sign of the tag. Lets go back to the execution log and pay attention to the time. The "Add to workflow" and "Add Tag" action fired at the same time within the exact same second, which is a race condition.
How To Prevent a Race ConditionTo fix the race condition, just add a Wait action of 1 minute. https://www.loom.com/share/f4adf9e14dab429da0cc2fedbb7e5e36With a Wait 1 minute action, there is no chance of the race condition occurring.
Can't find what you need? Log in and use the in-app chat, or talk to our team.