Skip to content

Commit 9e7de4c

Browse files
committed
fix: update default concurrency setting to 1 in config.py
1 parent 102dd22 commit 9e7de4c

2 files changed

Lines changed: 19 additions & 5 deletions

File tree

.github/workflows/ci-cd.yaml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,32 @@ on:
1414
jobs:
1515
cache:
1616
uses: milsman2/python-app-template/.github/workflows/cache-uv-build.yaml@main
17-
17+
with:
18+
UV_VERSION: ${{ vars.UV_VERSION }}
19+
PYTHON_VERSION: ${{ vars.PYTHON_VERSION }}
1820
lint:
1921
uses: milsman2/python-app-template/.github/workflows/ruff.yaml@main
2022
needs: cache
21-
23+
with:
24+
UV_VERSION: ${{ vars.UV_VERSION }}
25+
PYTHON_VERSION: ${{ vars.PYTHON_VERSION }}
2226
test:
2327
needs: [lint, cache]
2428
uses: milsman2/python-app-template/.github/workflows/pytest.yaml@main
25-
29+
with:
30+
UV_VERSION: ${{ vars.UV_VERSION }}
31+
PYTHON_VERSION: ${{ vars.PYTHON_VERSION }}
2632
docker-build-and-image-scan:
2733
if: github.event_name == 'push'
2834
needs: test
2935
uses: milsman2/python-app-template/.github/workflows/docker-build-and-scan.yaml@main
3036
with:
3137
DOCKER_PATH_CONTEXT: .
3238
DOCKER_BUILD_DOCKERFILE: ./Dockerfile
33-
DOCKER_TAGS: ${{ github.repository }}:${{ github.sha }}
39+
DOCKER_TAGS: ${{ vars.DOCKER_USERNAME }}/${{ vars.DOCKER_REPOSITORY }}:${{ github.sha }}
3440
DOCKER_LOAD_BOOL: false
3541
DOCKER_PUSH_BOOL: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') }}
42+
DOCKER_USERNAME: ${{ vars.DOCKER_USERNAME }}
3643
secrets: inherit
3744

3845
release:
@@ -42,3 +49,10 @@ jobs:
4249
permissions:
4350
contents: write
4451
secrets: inherit
52+
with:
53+
DOCKER_USERNAME: ${{ vars.DOCKER_USERNAME }}
54+
DOCKER_REPOSITORY: ${{ vars.DOCKER_REPOSITORY }}
55+
UV_VERSION: ${{ vars.UV_VERSION }}
56+
PYTHON_VERSION: ${{ vars.PYTHON_VERSION }}
57+
DOCKER_PATH_CONTEXT: .
58+
DOCKER_BUILD_DOCKERFILE: ./Dockerfile

src/python_response_time/core/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Settings(BaseSettings):
1717
] = 10
1818
CONCURRENCY: Annotated[
1919
int, Field(gt=0, le=10_000, description="Concurrent requests")
20-
] = 2
20+
] = 1
2121
TIMEOUT: Annotated[
2222
float, Field(gt=0, le=120, description="Request timeout in seconds")
2323
] = 10.0

0 commit comments

Comments
 (0)