So I have Rules attached to item_created, item_updated, item_deleted. It seems when i publish a new version of the item these events are firing before the item finishes updating.
I use this to cache the latest timestamp of catalog updates so I can control when catalogs are downloaded by the clients.
The issue here is when the event fires it seems that the item is being updated and not part of the catalog download, which causes alot of issues.
Basically there are 2 problems here.
The item seems to be removed from the public catalog while it is being published. Since i download the catalog at runtime this causes issues for clients that have inventory items of those entries.
When i publish the item, the updated/created/deleted events should fire after the item operation is completed, so if i were to download the current state of the catalog at that moment it would reflect the correct state.