Skip to content

Commit

Permalink
fix: DBTP-1645 - conduit out of memory when querying large data sets (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
acodeninja authored Jan 17, 2025
1 parent 1569df5 commit d38441a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dbt_platform_helper/providers/copilot.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def create_addon_client_task(
f"{execution_role}"
f"--image {CONDUIT_DOCKER_IMAGE_LOCATION}:{addon_type} "
f"--secrets CONNECTION_SECRET={_get_secrets_provider(application, env).get_connection_secret_arn(secret_name)} "
"--cpu 2048 --memory 4096 "
"--platform-os linux "
"--platform-arch arm64",
shell=True,
Expand Down Expand Up @@ -98,6 +99,7 @@ def create_postgres_admin_task(
f"--task-group-name {task_name} "
f"--image {CONDUIT_DOCKER_IMAGE_LOCATION}:{addon_type} "
f"--env-vars CONNECTION_SECRET='{connection_string}' "
"--cpu 2048 --memory 4096 "
"--platform-os linux "
"--platform-arch arm64",
shell=True,
Expand Down
6 changes: 5 additions & 1 deletion tests/platform_helper/providers/test_copilot.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ def test_create_postgres_admin_task(mock_update_parameter, mock_application):

mock_subprocess.call.assert_called_once_with(
f"copilot task run --app {mock_application.name} --env {env} "
f"--task-group-name test-task "
"--task-group-name test-task "
"--image public.ecr.aws/uktrade/tunnel:postgres "
"--env-vars CONNECTION_SECRET='\"connection string\"' "
"--cpu 2048 --memory 4096 "
"--platform-os linux "
"--platform-arch arm64",
shell=True,
Expand Down Expand Up @@ -120,6 +121,7 @@ def test_create_redis_or_opensearch_addon_client_task(
f"--execution-role {addon_name}-{mock_application.name}-{env}-conduitEcsTask "
f"--image public.ecr.aws/uktrade/tunnel:{addon_type} "
"--secrets CONNECTION_SECRET=test-arn "
"--cpu 2048 --memory 4096 "
"--platform-os linux "
"--platform-arch arm64",
shell=True,
Expand Down Expand Up @@ -173,6 +175,7 @@ def test_create_postgres_addon_client_task(
f"--execution-role {addon_name}-{mock_application.name}-{env}-conduitEcsTask "
f"--image public.ecr.aws/uktrade/tunnel:{addon_type} "
"--secrets CONNECTION_SECRET=test-arn "
"--cpu 2048 --memory 4096 "
"--platform-os linux "
"--platform-arch arm64",
shell=True,
Expand Down Expand Up @@ -261,6 +264,7 @@ def test_create_addon_client_task_does_not_add_execution_role_if_role_not_found(
f"--task-group-name {task_name} "
f"--image public.ecr.aws/uktrade/tunnel:{addon_type} "
"--secrets CONNECTION_SECRET=test-arn "
"--cpu 2048 --memory 4096 "
"--platform-os linux "
"--platform-arch arm64",
shell=True,
Expand Down

0 comments on commit d38441a

Please sign in to comment.