GAE cron重试参数

2024-09-29 23:23:24 发布

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

GAE page

根据GAE的建议,我添加了retry参数(复制自GAE网站):

     - retry_parameters
       min_backoff_seconds: 2.5
       max_doublings: 5

但是当我尝试部署我的项目时,它会给出以下错误:

“分析yaml文件时出错:

此处不允许映射值 在“/path/to/my/project”中/克罗恩·亚姆“,第x行,第xx列”

x线在

^{pr2}$

有什么帮助吗?在


Tags: 项目参数网站部署错误pagemin建议
2条回答

据我所知,那是无效的。假设这是https://cloud.google.com/appengine/docs/python/config/cron上的示例。尝试在retry_parameters后添加一个冒号。重试的参数应再缩进一级。在

cron:
- description: retry demo
  url: /retry
  schedule: every 10 mins
- retry_parameters:
    min_backoff_seconds: 2.5
    max_doublings: 5

retry_parameters中删除连字符。另外,retry_parameters的参数应该再缩进一级。在

cron:
- description: daily reports and exports
  url: /admin/reports/reportsdaily
  schedule: every 10 mins
  retry_parameters:
    min_backoff_seconds: 2.5
    max_doublings: 5

相关问题 更多 >

    热门问题