Skip to content

Commit 9360bdc

Browse files
committed
fix: Pass down Aspects config to dbt
1 parent 40ee54f commit 9360bdc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tutoraspects/plugin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
# Validate TLS certificate if using TLS/SSL
194194
("DBT_PROFILE_VERIFY", "True"),
195195
# Use TLS (native protocol) or HTTPS (http protocol)
196-
("DBT_PROFILE_SECURE", "False"),
196+
("DBT_PROFILE_SECURE", "{{ CLICKHOUSE_SECURE_CONNECTION }}"),
197197
# Number of times to retry a "retryable" database exception (such as a 503
198198
# 'Service Unavailable' error)
199199
("DBT_PROFILE_RETRIES", "3"),

tutoraspects/templates/aspects/apps/aspects/scripts/dbt.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ echo "Installing dbt dependencies"
1616
dbt deps --profiles-dir /app/aspects/dbt/
1717

1818
echo "Running dbt $*"
19-
dbt "$@" --profiles-dir /app/aspects/dbt/
19+
XAPI_SCHEMA={{ ASPECTS_XAPI_DATABASE }} ASPECTS_ENROLLMENT_EVENTS_TABLE={{ ASPECTS_ENROLLMENT_EVENTS_TABLE }} dbt "$@" --profiles-dir /app/aspects/dbt/

tutoraspects/templates/aspects/jobs/init/dbt/init-dbt.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ echo "Installing dbt dependencies"
1616
dbt deps --profiles-dir /app/aspects/dbt/
1717

1818
echo "Running dbt"
19-
dbt run --profiles-dir /app/aspects/dbt/
19+
XAPI_SCHEMA={{ ASPECTS_XAPI_DATABASE }} ASPECTS_ENROLLMENT_EVENTS_TABLE={{ ASPECTS_ENROLLMENT_EVENTS_TABLE }} dbt run --profiles-dir /app/aspects/dbt/

0 commit comments

Comments
 (0)