Revert syncing tasks in one transaction