I have a page which uses some data from datastore, and if the data is outdated it should trigger update. The updates takes up about some minutes, so I decided to do it in a backend. However, when I use urlfetch.fetch(backends.get_url('backend-name')), the page shows 500 Internal Server Error, and in logs I see DeadlineExceededError from this line of script. And one more thing: the deployed backend seems to be running and wasting Backend Hours even if not used.
Google documentation on this topic hasn’t full examples, and I can’t see what is wrong.
Backend is a context where your handlers can run, you can execute an handler on a backend by using the taskqueue.add() with the target parameter set to your backend name.
This will execute the handler on the backend allowing it to live for more then ten minute and have more memory.