From 9e7de4cb9d49bfd6b90843f88025348ceb34cc0a Mon Sep 17 00:00:00 2001 From: Miles Kane Date: Thu, 26 Mar 2026 22:05:58 -0500 Subject: [PATCH] fix: update default concurrency setting to 1 in config.py --- .github/workflows/ci-cd.yaml | 22 ++++++++++++++++++---- src/python_response_time/core/config.py | 2 +- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci-cd.yaml b/.github/workflows/ci-cd.yaml index 0e1aa24..63270fa 100644 --- a/.github/workflows/ci-cd.yaml +++ b/.github/workflows/ci-cd.yaml @@ -14,15 +14,21 @@ on: jobs: cache: uses: milsman2/python-app-template/.github/workflows/cache-uv-build.yaml@main - + with: + UV_VERSION: ${{ vars.UV_VERSION }} + PYTHON_VERSION: ${{ vars.PYTHON_VERSION }} lint: uses: milsman2/python-app-template/.github/workflows/ruff.yaml@main needs: cache - + with: + UV_VERSION: ${{ vars.UV_VERSION }} + PYTHON_VERSION: ${{ vars.PYTHON_VERSION }} test: needs: [lint, cache] uses: milsman2/python-app-template/.github/workflows/pytest.yaml@main - + with: + UV_VERSION: ${{ vars.UV_VERSION }} + PYTHON_VERSION: ${{ vars.PYTHON_VERSION }} docker-build-and-image-scan: if: github.event_name == 'push' needs: test @@ -30,9 +36,10 @@ jobs: with: DOCKER_PATH_CONTEXT: . DOCKER_BUILD_DOCKERFILE: ./Dockerfile - DOCKER_TAGS: ${{ github.repository }}:${{ github.sha }} + DOCKER_TAGS: ${{ vars.DOCKER_USERNAME }}/${{ vars.DOCKER_REPOSITORY }}:${{ github.sha }} DOCKER_LOAD_BOOL: false DOCKER_PUSH_BOOL: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') }} + DOCKER_USERNAME: ${{ vars.DOCKER_USERNAME }} secrets: inherit release: @@ -42,3 +49,10 @@ jobs: permissions: contents: write secrets: inherit + with: + DOCKER_USERNAME: ${{ vars.DOCKER_USERNAME }} + DOCKER_REPOSITORY: ${{ vars.DOCKER_REPOSITORY }} + UV_VERSION: ${{ vars.UV_VERSION }} + PYTHON_VERSION: ${{ vars.PYTHON_VERSION }} + DOCKER_PATH_CONTEXT: . + DOCKER_BUILD_DOCKERFILE: ./Dockerfile diff --git a/src/python_response_time/core/config.py b/src/python_response_time/core/config.py index 053c401..d3892fa 100644 --- a/src/python_response_time/core/config.py +++ b/src/python_response_time/core/config.py @@ -17,7 +17,7 @@ class Settings(BaseSettings): ] = 10 CONCURRENCY: Annotated[ int, Field(gt=0, le=10_000, description="Concurrent requests") - ] = 2 + ] = 1 TIMEOUT: Annotated[ float, Field(gt=0, le=120, description="Request timeout in seconds") ] = 10.0