rosulek / gmail-tickler

Get emails out of your inbox until a specified date
MIT License
19 stars 5 forks source link

Make script run faster on larger numbers of threads #15

Closed lehrblogger closed 7 years ago

lehrblogger commented 8 years ago

For the past two days I've gotten the quota error message towards the end of the day Service using too much computer time for one day. I've configured the script to run every fifteen minutes on three dozen Gmail threads in a few different Tickler labels, which is more than I usually have, but not really that many.

I'm guessing the API requests to Gmail are the slowest part, and there are probably ways to cache results and otherwise make those more efficient. I'll take a look as soon as I (eventually) wrap up my relative baseline PR for https://github.com/rosulek/gmail-tickler/issues/6...

lehrblogger commented 8 years ago

I ran into this again while traveling last week with ~100 emails tickled and an every-15-minutes trigger, so I'm still planning to try to make some improvements.

lehrblogger commented 7 years ago

Closing this since it may have been resolved by @rosulek's work in https://github.com/rosulek/gmail-tickler/issues/6. I'll reopen if it happens again with the new implementation.