Is there a way to force a write commit?

Is there a way to force a write commit?

I have Deluge code, triggered by a workflow, that creates a Workdrive folder structure.

There are times when the workflow must be getting triggered in quick succession, because two folders get created.

My code properly checks for the existence of the WD resource_id.

This leads me to conclude that the actual write of the first call is not yet complete before the second call.

Any way to force a commit?