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

Make MAXIMUM_SEED_SIZE configurable #7116

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changes/unreleased/Features-20230303-144700.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Features
body: Make MAXIMUM_SEED_SIZE configurable
time: 2023-03-03T14:47:00.079887-05:00
custom:
Author: acurtis-evi
Issue: "7117"
10 changes: 8 additions & 2 deletions core/dbt/constants.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
import os

SECRET_ENV_PREFIX = "DBT_ENV_SECRET_"
DEFAULT_ENV_PLACEHOLDER = "DBT_DEFAULT_PLACEHOLDER"
METADATA_ENV_PREFIX = "DBT_ENV_CUSTOM_ENV_"

MAXIMUM_SEED_SIZE = 1 * 1024 * 1024
MAXIMUM_SEED_SIZE_NAME = "1MB"
def get_max_seed_size():
mx = os.getenv('DBT_MAXIMUM_SEED_SIZE', '1')
return int(mx)

MAXIMUM_SEED_SIZE = get_max_seed_size() * 1024 * 1024
MAXIMUM_SEED_SIZE_NAME = str(get_max_seed_size()) + "MB"
acurtis-evi marked this conversation as resolved.
Show resolved Hide resolved

PIN_PACKAGE_URL = (
"https://docs.getdbt.com/docs/package-management#section-specifying-package-versions"
Expand Down