以编程方式创建TaskQueue [英] Create TaskQueue programmatically

查看:57
本文介绍了以编程方式创建TaskQueue的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您可以通过 queue.xml 创建任务队列:

You can create Task queue through the queue.xml lie this:

<queue-entries>
    <queue>
        <name>default</name>
        <rate>5/s</rate>
    </queue>
</queue-entries>

但是有没有办法用Java以编程方式创建新的Queue?

But is there a way to create new Queue programmatically in Java?

推荐答案

您无法创建

You can't create Queues dynamically, however you can always run "gcloud app deploy queue.yaml" in a script to programmatically edit the queue.yaml which in turn creates / modifies Push Queues.

这篇关于以编程方式创建TaskQueue的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆