gmail poll
This commit is contained in:
@@ -43,7 +43,9 @@ async function poll(client) {
|
|||||||
try {
|
try {
|
||||||
pollCount++;
|
pollCount++;
|
||||||
if (pollCount % 10 === 0) {
|
if (pollCount % 10 === 0) {
|
||||||
|
if (totalProcessed > 0) {
|
||||||
logAutomation('Gmail poll summary', null, `polls: ${pollCount}, processed: ${totalProcessed}, skipped: ${totalSkipped}, errors: ${totalErrors}`).catch(() => {});
|
logAutomation('Gmail poll summary', null, `polls: ${pollCount}, processed: ${totalProcessed}, skipped: ${totalSkipped}, errors: ${totalErrors}`).catch(() => {});
|
||||||
|
}
|
||||||
pollCount = 0; totalProcessed = 0; totalSkipped = 0; totalErrors = 0;
|
pollCount = 0; totalProcessed = 0; totalSkipped = 0; totalErrors = 0;
|
||||||
}
|
}
|
||||||
console.log('Running poll()...');
|
console.log('Running poll()...');
|
||||||
|
|||||||
Reference in New Issue
Block a user