I have a function that takes a long time to delete many entities from the datastore. It produces a DeadlineExceed exception. I've tried to run it through a task but I'm still having trouble. In the documentation it says a task can 10 minutes but at the same time the task is calling an end point which has its own limitation. Therefore I don't see the benefit of the task's 10 minute execution time. 

My function that exceeds the deadline is written like this that pulls ~1000 entities.

```
class DeleteJune(webapp.RequestHandler):
    def get(self):
        ji = Junk.all().run()
        for j in ji:
            db.delete(j)

```

How can I run a function like this?