I'm using error handler to get notifications about every error in App Engine app. It works well for Cloud Endpoints and servlets but I can't figure out how to handle errors in servlets invoked by push queues.
The configuration in web.xml
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/admin/error-notification</location>
</error-page>
The scenario I want to achieve
- a new task is added to the push queue
- the task fails and is retried
xnumber of times (<task-retry-limit>x</task-retry-limit>) - once the retry limit is reached the task is removed from the queue, but the error handler is invoked with the stack trace of the last unsuccessful run
The problem is once the task is removed nothing is invoked. Is there any way to configure it like I described above? I don't want to receive notification about every single failure, just the last failure preceding the removal of the task from the push queue.
X-AppEngine-TaskRetryCountheader and initiate its own error notification that way? - tx802