I'll agree that i have seen similar issues and now as a matter of habit always specify my intended target when queuing tasks.
It would be great to update the documentation to make that more obvious. :) cfh On Friday, December 4, 2015 at 1:53:52 PM UTC-8, Adam wrote: > > You can try using the target > <https://cloud.google.com/appengine/docs/python/config/queue?hl=en#target> > parameter to explicitly specify the module the task should run on. > According to the docs, the HTTP *may* be intercepted by the dispatch > routing rule, so this seems to imply it doesn't always happen. > > Cheers, > > Adam > Cloud Platform Support > > On Wednesday, December 2, 2015 at 6:57:03 PM UTC-5, Kirill Kireyev wrote: >> >> Hi, >> >> I have a GAE app with two modules, default and "background". My >> dispatch.yaml file says: >> >> dispatch: >> >> - url: "*/cron/*" >> >> module: background >> >> - url: "*/_ah/queue/deferred" >> >> module: background >> >> - url: "*/background_tasks/*" >> >> module: background >> >> >> When I enter a "http://MYHOST/background_tasks/XXX" from my web browser, >> the task is indeed handled by the "background" module. >> >> >> However, when the task is run from within my app: >> >> taskqueue.add(url="/background_tasks/XXX"), queue_name="YYY") >> >> >> The task is handled by the default module (I've verified this by looking >> at the GAE logs in Dev Console for each of the two modules separately). >> >> >> Can someone please help me understand why this discrepancy? >> >> >> Thanks, >> >> Kirill >> > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/718a6565-1ec7-438a-9c4b-04cea1c647b7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
