I have a dispatch.yaml
file that is supposed to route deferred Task Queue requests on the /_ah/queue/deferred
path to a module instance with more memory. However, the requests are not consistently being routed.
See this doc page for a primer on deferred tasks (they are a sub-type of task queue tasks).
Here is my dispatch.yaml
:
dispatch:
- url: "*/_ah/queue/deferred"
module: deferred
- url: "*/cron/*"
module: deferred
- url: "*/ocr/cron/*"
module: deferred
The problem is that while the above dispatch file seems to work most of the time, it does not work all of the time. That is, sometimes requests on the /_ah/queue/deferred
get routed to the default module instead of the deferred module.
Screenshots
Here is a screenshot of my logs on the "deferred" module. Notice that the URLs to the deferred path get properly dispatched:
But here is the screenshot of the default module's logs. Notice that it too is getting this path routed to it: