我正在尝试移植到googleappenginemodules,这是一个以前长期运行的工作(运行在“后端”)。在
下面是module1.yaml示例。在
application: myuniqueapp
module: module1
version: 1
runtime: python27
api_version: 1
threadsafe: true
instance_class: F4_1G
automatic_scaling:
max_idle_instances: 1
handlers:
- url: /data
static_dir: data
application_readable: true
- url: /.*
script: app.application
要通过taskqueue提交给此(从前端实例)的代码如下:
^{pr2}$这样就提交了正确的任务,没有任何问题。任务也由模块1执行。在
但它在第10分钟被杀,死线超过了误差。这是一个长时间运行的任务,运行时间超过10分钟(就像它以前对“后端”的工作方式一样)。在
要使在模块中执行的任务超过10分钟,需要进行什么配置更改?在
您只需为模块选择手动或基本缩放:
https://developers.google.com/appengine/docs/java/modules/#Java_Instance_scaling_and_class
相关问题 更多 >
编程相关推荐