tpitale / mail_room

Forward mail from gmail IMAP to a callback URL or job worker, simply.
MIT License
195 stars 51 forks source link

Speed up process termination time when Microsoft Graph enabled #132

Closed stanhu closed 2 years ago

stanhu commented 2 years ago

By default, the Microsoft Graph connection sleeps for 60 seconds before polling for more data. If the process is terminated, it can take another 60 seconds to terminate.

We can speed this up by waking up every second and and checking whether to terminate.

stanhu commented 2 years ago

@tpitale Thanks for the quick approval! Did you mean to merge? 😄

tpitale commented 2 years ago

@stanhu, oh I thought you had merge access. Sorry!

stanhu commented 2 years ago

@tpitale I do not yet, but I would be happy to get merge access.

tpitale commented 2 years ago

Will add you as soon as I get back to a computer!

tpitale commented 2 years ago

@stanhu Invite sent.

stanhu commented 2 years ago

@tpitale Thanks so much!

tpitale commented 2 years ago

Thank you for your continued contributions @stanhu!