I think I figured this out, though I haven't yet implemented it. I
described my proposal at


http://stackoverflow.com/questions/21779466/gae-python-ereporter-doesnt-send-email/23922029

Here's the relevant part -- I also included a link to this thread:

You could also write your own cron handler to wrap the _ereporter and
provide today's date programmatically, something like this:

self.redirect("/_ereporter ... &date=%s" %
datetime.datetime.now().strftime("%Y-%m-%d"))

I plan to do that so that I can get an hourly exception report.

If there's a way to do this without a wrapper (and without cloning the
ereporter code in my own project) I'd be happy to hear about it!


On Wed, May 28, 2014 at 2:48 PM, Adam Wildavsky <a...@tameware.com> wrote:

> Thanks! Until i saw this I could not figure out why I was not receiving
> mail.
>
> I want my cron to send me all outstanding exception reports, though, not
> just yesterday's. How can I achieve that? Calling datetime.datetime.now()
> would be clever, but i don't know where to put the call. My choices seem to
> be app.yaml or cron.yaml, but as far as I can tell neither passes through a
> Python interpreter.
>
> On Wednesday, November 9, 2011 9:23:49 AM UTC-7, Ubaldo Huerta wrote:
>>
>> Well, just read the ereporter.py, it's easy to follow. You need to pass a
>> date paremeter (it defaults to yesterday)
>>
>> Pass today's date and you'll see the exception records in the ouput.
>> Something like
>>
>> "....&date=%s" % datetime.datetime.now().strftime("%Y-%m-%d")
>>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google App Engine" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-appengine/G99VGhs5cls/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-appengine.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Reply via email to