Skip to content

Commit

Permalink
refactored compaction_session.py, addressed comments, pytests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
akindu-amazon committed Jul 19, 2024
1 parent 56f0aa6 commit 207ecba
Show file tree
Hide file tree
Showing 11 changed files with 928 additions and 575 deletions.
5 changes: 5 additions & 0 deletions deltacat/compute/compactor/model/compact_partition_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,11 @@ def compacted_file_content_type(self, content_type: ContentType) -> None:

@property
def task_max_parallelism(self) -> int:
if self.pg_config:
cluster_resources = self["pg_config"].resource
cluster_cpus = cluster_resources["CPU"]
self.task_max_parallelism = cluster_cpus
self["task_max_parallelism"] = self.task_max_parallelism
return self["task_max_parallelism"]

@task_max_parallelism.setter
Expand Down
670 changes: 97 additions & 573 deletions deltacat/compute/compactor_v2/compaction_session.py

Large diffs are not rendered by default.

Loading

0 comments on commit 207ecba

Please sign in to comment.