Identify and handle race conditions | Databricks