chore: increase GmailWatcher default poll interval from 60s to 300s
This commit is contained in:
@@ -109,7 +109,7 @@ function createMockConfig(overrides = {}) {
|
||||
credentials_file: '~/.config/flynn/gmail-credentials.json',
|
||||
token_file: '~/.config/flynn/gmail-token.json',
|
||||
watch_labels: ['INBOX'],
|
||||
poll_interval: '60s',
|
||||
poll_interval: '300s',
|
||||
output: {
|
||||
channel: 'telegram',
|
||||
peer: '12345',
|
||||
|
||||
@@ -90,7 +90,7 @@ export class GmailWatcher implements ChannelAdapter {
|
||||
}
|
||||
|
||||
// Start polling fallback
|
||||
const pollMs = parseInterval(this.config.poll_interval ?? '60s');
|
||||
const pollMs = parseInterval(this.config.poll_interval ?? '300s');
|
||||
this.pollTimer = setInterval(() => {
|
||||
this.pollForNewMessages().catch((err) => {
|
||||
console.error('GmailWatcher: Poll error —', err instanceof Error ? err.message : err);
|
||||
@@ -98,7 +98,7 @@ export class GmailWatcher implements ChannelAdapter {
|
||||
}, pollMs);
|
||||
|
||||
this._status = 'connected';
|
||||
console.log(`GmailWatcher: Connected (poll_interval=${this.config.poll_interval ?? '60s'})`);
|
||||
console.log(`GmailWatcher: Connected (poll_interval=${this.config.poll_interval ?? '300s'})`);
|
||||
}
|
||||
|
||||
async disconnect(): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user