This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Deactivate Gmail integrations that failed watch renewal due to unrecoverable errors: | |
| # - failedPrecondition: Mail service not enabled | |
| # - PERMISSION_DENIED: Request had insufficient authentication scopes | |
| # | |
| # Set dry_run = false below to execute | |
| dry_run = true | |
| BROKEN_IDS = [ | |
| 81530, # failedPrecondition: Mail service not enabled |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Heal Gmail integrations stuck with blank history_id | |
| # Source: Bugsnag https://app.bugsnag.com/productive/api/errors/68f25b8bcc7f080b9e1e42b1 | |
| # | |
| # Note: record_watch_renewal in production never persisted history_id — this script | |
| # calls watch_inbox (which saves watch_expiration + metric) then manually saves history_id. | |
| # | |
| # Set dry_run = false below to execute | |
| dry_run = true |