We have auto-advanced steps in the workflow which are being done by
separate processes. Once the process reads the file, it created some
data nodes in AEM and replicates those in order to persist them. Once it
calls the replicate command, we are waiting for some time so that the
next process access the correct data. So, if the wait is not there, the
next process might read incomplete/unpublished data.