-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New: Support automatic scraping periodically #613
Conversation
packages/preload/src/index.ts
Outdated
// Clear the interval that scrapes periodically | ||
await stopPeriodicScraping(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about this, wrote you on Whatsapp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed this
@@ -67,10 +68,11 @@ export const registerHandlers = () => { | |||
ipcMain.on('scrape', async (event: IpcMainEvent) => { | |||
const config = await getConfig(); | |||
const eventSubscriber = new BudgetTrackingEventEmitter(); | |||
scrapeAndUpdateOutputVendors(config, eventSubscriber); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@baruchiro we had a bug here, listening to events was set up only after running scrape, and scraping was without await, so there was a race condition on whether or not the first event set would be caught by the onAny handler or not.
🎉 This PR is included in version 2.3.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
הוספתי אפשרות בהגדרות להגיד שרוצים שירוץ אוטומטית כל כמה שעות
זה נראה ככה:
כשלוחצים על הפעל זה מאתחל את הטיימר של ההרצה האוטומטית.