Skip to content
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

fix: wait for persist state listeners to run when event manager closes #1481

Conversation

vladfrangu
Copy link
Member

Should resolve #1463 by ensuring the persist state listeners are executed when events.close is called

For the actor users, we also need apify/apify-sdk-js#49

@vladfrangu vladfrangu requested a review from B4nan August 24, 2022 10:22
Copy link
Member

@B4nan B4nan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets add a test so we dont fall into this trap again, preferrably e2e one.

@vladfrangu vladfrangu force-pushed the fix/wait-for-persist-state-listeners-to-process-on-event-manager-close branch from 2d50f78 to adf0075 Compare August 24, 2022 16:37
@vladfrangu vladfrangu changed the title fix: wait for persist state listeners to run in event manager close fix: wait for persist state listeners to run when event manager closes Aug 26, 2022
@vladfrangu vladfrangu merged commit aa550ed into master Aug 26, 2022
@vladfrangu vladfrangu deleted the fix/wait-for-persist-state-listeners-to-process-on-event-manager-close branch August 26, 2022 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

crawler.useState should auto-persist the state values at the end of the crawl
2 participants