Skip to main content

Troubleshooting Workflow Executions - Race Conditions

N
Written by Noah Abramowitz
Updated over 4 months ago

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.


TABLE OF CONTENTS


Example Race Condition: Add Tag Executed But Not Added

In 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 Condition

To fix the race condition, just add a Wait action of 1 minute.

With a Wait 1 minute action, there is no chance of the race condition occurring.

Did this answer your question?