Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
Change process numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
bastgau committed Mar 1, 2024
1 parent 085797b commit 3224520
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/snow_revoke_privileges/snow_privileges.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def prepare_future_true(self) -> None:

self.progress = Bar("Processing", max=len(only_database_schema))

with Pool(processes=16) as pool:
with Pool(processes=8) as pool:
for _ in pool.imap_unordered(self.prepare_future_true_task, only_database_schema.iterrows()): # pyright: ignore
self.progress.next()

Expand Down
2 changes: 1 addition & 1 deletion src/snow_revoke_privileges/tools/my_snowflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def execute_multi_requests(requests: List[str]) -> None: # pylint: disable=unus

with Bar("Executing request in Snwoflake", max=len(requests)) as progress:

with Pool(processes=4) as pool:
with Pool(processes=8) as pool:
for _ in pool.imap_unordered(MySnowflake.execute_single_request, requests): # pyright: ignore
progress.next()

Expand Down

0 comments on commit 3224520

Please sign in to comment.