Skip to content

Commit

Permalink
rework
Browse files Browse the repository at this point in the history
  • Loading branch information
thundergolfer committed Aug 2, 2023
1 parent 1889ced commit cf44b9a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions 10_integrations/dbt/dbt_sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

import os
import subprocess
import sys
import typing
from pathlib import Path

Expand Down Expand Up @@ -80,12 +81,8 @@ def debug():
dbt_cli.call(["debug"])


# Only used in testing to disable interactivity.
interactivity_enabled = os.environ.get("AWS_LAMBDA_RUNTIME_API") is None


@stub.function(
interactive=interactivity_enabled,
interactive=sys.stdout.isatty(),
network_file_systems={RAW_SCHEMAS: raw_volume, OUTPUT_SCHEMAS: db_volume},
timeout=86400,
image=modal.Image.debian_slim().apt_install("sqlite3"),
Expand Down

0 comments on commit cf44b9a

Please sign in to comment.