【问题标题】:Google Task Queues JSON API TransactionsGoogle 任务队列 JSON API 事务
【发布时间】:2015-06-20 20:18:34
【问题描述】:

是否可以使用它们的 REST API 在 App Engine 之外以原子方式将记录放入 Google Cloud Datastore 并将任务放入 TaskQueue?

基本实现this(如下),但在 Container Engine 中且不使用高级 App Engine 特定 API。

DatastoreService ds = DatastoreServiceFactory.getDatastoreService();
Queue queue = QueueFactory.getDefaultQueue();
try {
    Transaction txn = ds.beginTransaction();

    // ...

    queue.add(TaskOptions.Builder.withUrl("/path/to/my/worker"));

    // ...
    txn.commit();
} catch (DatastoreFailureException e) {
}

【问题讨论】:

    标签: google-app-engine google-api google-cloud-datastore google-api-java-client


    【解决方案1】:

    目前无法使用 Cloud Datastore API。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-11
      • 2017-04-17
      相关资源
      最近更新 更多