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

feat: Reusable multiprocessing pool #311

Merged
merged 10 commits into from
Dec 6, 2023
Merged

feat: Reusable multiprocessing pool #311

merged 10 commits into from
Dec 6, 2023

Conversation

lynnagara
Copy link
Member

@lynnagara lynnagara commented Dec 4, 2023

The RunTaskWithMultiprocessing strategy now takes a MultiprocessingPool as an argument. The user can safely reuse the multiprocessing pool between rebalances. Recreating the pool each time is still also possible and would match today's behavior.

Copy link

sentry-io bot commented Dec 4, 2023

🚀 Sentry Issue Report

You modified these files in this pull request and we noticed these issues associated with them.

📄 arroyo/processing/strategies/run_task_with_multiprocessing.py

Issue Additional Info
‼️ InvalidMessage: (Partition(topic=Topic(name='ingest-replay-events'), index=11), 707181075, True) ... Handled: True Event Count: 107 Users: 0
‼️ ChildProcessTerminated: 20 sentry.utils.kafka in ... Handled: True Event Count: 13 Users: 14
‼️ ValueTooLarge: value exceeds available space in block, 1830 bytes needed but 1201 bytes free sen... Handled: True Event Count: 2 Users: 1

Did you find this useful? React with a 👍 or 👎 or let us know in #proj-github-pr-comments

@lynnagara lynnagara changed the title wip wip: Reuse multiprocessing pool Dec 4, 2023
@lynnagara lynnagara marked this pull request as ready for review December 5, 2023 19:46
@lynnagara lynnagara requested a review from a team as a code owner December 5, 2023 19:47
@lynnagara lynnagara changed the title wip: Reuse multiprocessing pool feat: Reusable multiprocessing pool Dec 5, 2023
lynnagara added a commit to getsentry/sentry that referenced this pull request Dec 6, 2023
Companion to getsentry/arroyo#311 to
demonstrate how it could work with the unified consumer /
Arroyo wrappers in Sentry
@lynnagara lynnagara enabled auto-merge (squash) December 6, 2023 21:52
@lynnagara lynnagara enabled auto-merge (squash) December 6, 2023 21:53
@lynnagara lynnagara merged commit 4434811 into main Dec 6, 2023
8 checks passed
@lynnagara lynnagara deleted the multiprocessing-pool branch December 6, 2023 21: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.

None yet

2 participants