Skip to content

Commit

Permalink
fix: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
renlulu committed Dec 28, 2024
1 parent 6bd84d2 commit 431d362
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/twitter/TwitterPipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -852,22 +852,22 @@ async saveCookies() {
Logger.success("🔒 Cleaned up fallback system");
}

await this.saveProgress(null, null, this.stats.uniqueTweets, {
completed: true,
endTime: new Date().toISOString(),
fallbackUsed: this.stats.fallbackUsed,
fallbackCount: this.stats.fallbackCount,
rateLimitHits: this.stats.rateLimitHits,
});
// await this.saveProgress(null, null, this.stats.uniqueTweets, {
// completed: true,
// endTime: new Date().toISOString(),
// fallbackUsed: this.stats.fallbackUsed,
// fallbackCount: this.stats.fallbackCount,
// rateLimitHits: this.stats.rateLimitHits,
// });

Logger.success("✨ Cleanup complete");
} catch (error) {
Logger.warn(`⚠️ Cleanup error: ${error.message}`);
await this.saveProgress(null, null, this.stats.uniqueTweets, {
completed: true,
endTime: new Date().toISOString(),
error: error.message,
});
// await this.saveProgress(null, null, this.stats.uniqueTweets, {
// completed: true,
// endTime: new Date().toISOString(),
// error: error.message,
// });
}
}
}
Expand Down

0 comments on commit 431d362

Please sign in to comment.