2

I use Google Cloud Tasks with AppEngine to process tasks, but the tasks wait about 2-3 minutes in the queue before being sent to my App Engine endpoint.

There is no "delay" set on the tasks, and I expect them to be sent right away.

So the question is: Is Cloud Tasks slow?

As you can see is the following screenshot, Cloud Tasks gives an ETA of about 3 mins:

enter image description here

4

2 回答 2

2

The official word from Google is that this is the best you can expect from their task queues.

In my experience, how you configure tasks seems to influence how quickly they get executed.

It seems that:

  • If you don't change the default behavior of your task queues (e.g., maximum concurrent, etc.) and if you don't specify an execution time of a task (e.g., eta) then your tasks will execute very soon after submission.
  • If you mess with either of these two things, then Google takes longer to execute your tasks. My guess is that it is the extra overhead of controlling task rate and execution.
于 2019-08-18T12:13:22.510 回答
0

I see from your screenshot that you have a task with an ETA of 2 min 49 sec which is the time until your task will be run. You have high bucket size and concurrency numbers, so I think your issue has more to do with the parameters you are using when queueing your tasks, especially the scheduled_time attribute. Check your code to see if you are adding a delay to your tasks, and make sure to tune it down.

于 2020-08-02T01:18:33.100 回答