0

云任务说:

App Engine 强制执行的处理速率低于此队列的最大速率,这可能是因为您的应用程序正在返回 HTTP 503 代码,或者是因为当前没有可用于执行请求的实例。

但是,我使用 HTTP POST 请求将任务转发到云函数,类似于本教程中概述的请求。我的日志中没有看到它转发到的云功能的任何 503。

queue.yaml的是:

queue:
- name: task-queue-1
  rate: 3/s
  bucket_size: 500
  max_concurrent_requests: 100
  retry_parameters:
    task_retry_limit: 1
    min_backoff_seconds: 120
    task_age_limit: 7d

在此处输入图像描述

4

1 回答 1

0

The problem seems to come from any exception, even though only 503 is listed. If the cloud function responds with any error the task queue slows down the rate, and you have no control over that.

My solution was to swallow any errors to prevent that propagating up to Google's automatic check.

于 2020-08-28T18:01:18.127 回答