eantyshev commented on code in PR #24459:
URL: https://github.com/apache/beam/pull/24459#discussion_r1044413516


##########
playground/infrastructure/datastore_client.py:
##########
@@ -83,54 +85,65 @@ def save_to_cloud_datastore(self, examples_from_rep: 
List[Example], sdk: Sdk, or
         examples_ids_before_updating = self._get_all_examples(sdk, origin)
 
         # loop through every example to save them to the Cloud Datastore

Review Comment:
   The only reasonable restriction is to not leave single example-related 
entities in inconsistent state
   I've refactored this place to reduce transaction scope to a single example



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to