mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-18 09:24:15 +00:00
17 lines
658 B
Python
17 lines
658 B
Python
from config.env import env
|
|
|
|
# Partitioning
|
|
PSQLEXTRA_PARTITIONING_MANAGER = "api.partitions.manager"
|
|
|
|
# Set the months for each partition. Setting the partition months to 1 will create partitions with a size of 1 natural month.
|
|
FINDINGS_TABLE_PARTITION_MONTHS = env.int("FINDINGS_TABLE_PARTITION_MONTHS", 1)
|
|
|
|
# Set the number of partitions to create
|
|
FINDINGS_TABLE_PARTITION_COUNT = env.int("FINDINGS_TABLE_PARTITION_COUNT", 7)
|
|
|
|
# Set the number of months to keep partitions before deleting them
|
|
# Setting this to None will keep partitions indefinitely
|
|
FINDINGS_TABLE_PARTITION_MAX_AGE_MONTHS = env.int(
|
|
"FINDINGS_TABLE_PARTITION_MAX_AGE_MONTHS", None
|
|
)
|