谷歌应用引擎模块长时间运行任务>10分钟

2024-10-02 08:25:02 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试移植到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分钟,需要进行什么配置更改?在


Tags: 模块apitrueurlyaml示例dataapplication

热门问题