Skip to content

Commit

Permalink
fix: disable interactivity in Lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
thundergolfer committed Aug 2, 2023
1 parent c444150 commit 1889ced
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion 10_integrations/dbt/dbt_sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,12 @@ 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=True,
interactive=interactivity_enabled,
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 1889ced

Please sign in to comment.