I have been trying for some days to use the channel.send_message API in GAE (via Python) to send a message to a client when a TaskQueue process has finished. It just WON’T work.
I can use send_message from another request and it works fine and is received. But nothing when send_message is called from a TaskQueue.
I’ve tried this both locally and deployed to GAE full. Is this not a supported scenario?
It works fine for me. Make sure you are publishing using the same client key
keyidin bothand
i.e. make sure you are NOT using
tokenas the first parameter insend_message().I would log (using
logging.info()) thekeyid(andtoken) everywhere you use it in the python code andconsole.log()thetokenin the javascript code to make sure they all match where they should.