CloudDataflow can not use “google.cloud.datastore” package?
问题 I want to put datastore with transaction on CloudDataflow. So, I wrote below. def exe_dataflow(): .... from google.cloud import datastore # call from pipeline def ds_test(content): datastore_client = datastore.Client() kind = 'test_out' name = 'change' task_key = datastore_client.key(kind, name) for _ in range(3): with datastore_client.transaction(): current_value = client.get(task_key) current_value['v'] += content['v'] datastore_client.put(task) # pipeline .... | 'datastore test' >> beam