Skip to content

Commit

Permalink
[AP-1794] bug fix for partial sync multiprocessing (#1186)
Browse files Browse the repository at this point in the history
* bug fix for partial sync multiprocessing

* added method for setting start method as spawn

* fix lint

* handle lint complain

* fix pep8

* revert set start method
  • Loading branch information
amofakhar authored Nov 1, 2024
1 parent 7f3192c commit 81f607f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
0.66.1 (2024-10-31)
-------------------
- Bug fix for partial sync multiprocessing


0.66.0 (2024-10-11)
-------------------
- Bump programming language to Python 3.10
Expand Down
1 change: 1 addition & 0 deletions pipelinewise/fastsync/partialsync/mysql_to_snowflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def main_impl():

sync_tables = utils.get_sync_tables(args)

pool_size = len(sync_tables) if len(sync_tables) < pool_size else pool_size
with multiprocessing.Pool(pool_size) as proc:
sync_excs = list(
filter(
Expand Down
1 change: 1 addition & 0 deletions pipelinewise/fastsync/partialsync/postgres_to_snowflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ def main_impl():

sync_tables = utils.get_sync_tables(args)

pool_size = len(sync_tables) if len(sync_tables) < pool_size else pool_size
with multiprocessing.Pool(pool_size) as proc:
sync_excs = list(
filter(
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(name='pipelinewise',
python_requires='==3.10.*',
version='0.66.0',
version='0.66.1',
description='PipelineWise',
long_description=LONG_DESCRIPTION,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 81f607f

Please sign in to comment.