-
Notifications
You must be signed in to change notification settings - Fork 5
chore(process_updates): move away from docker check to celery #195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
crankynetman
merged 20 commits into
main
from
topic/chriscummings/celery-health-check-replacement
Jan 28, 2026
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
41fd5db
chore(process_updates): move away from docker check to celery
crankynetman 26db980
fix(tasks): docstring typos
crankynetman 9f9204e
feat(settings): make timeout configurable and provide better validation
crankynetman 44cb819
fix(pyproject): forgot a line when I refactored images.
crankynetman d5e906a
chore(settings): slap some variables and make names clearer.
crankynetman d21eb19
chore(tasks): cleanup var name
crankynetman eb96e9a
tests(scheduler): add tests for scheduler and combine with django oth…
crankynetman d5d27c9
chore(coverage): listen to the robot; do what it says
crankynetman f2e4f93
chore(ruff): I got my swim trunks and my ruff flippy-floppies
crankynetman 1aacb69
chore(uv): I think I got the workspace stuff done right now
crankynetman f0d7991
chore(pytest): ignore scheduler in django
crankynetman a04d935
ci(coverage): wait to run after coverage is collected please.
crankynetman 7dce3eb
ci(coverage): use the right coverage settings this time
crankynetman 861935a
ci(coverage): Im floundering here
crankynetman b671661
ci(coverage): Im floundering here still but maybe closer
crankynetman f953ffb
ci(coverage): Im floundering here still but maybe closer undo some st…
crankynetman 9aa75bf
chore(pytest.yml): rename cobertura step to be clearer
crankynetman 8c03233
ci(pytest): we don't need that pypi hack now?
crankynetman 6655ec4
ci(pytest): we don't need that pypi hack but need the package
crankynetman 53064e7
ci(pytest): use pip tho
crankynetman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| CELERY_BROKER_URL=redis://scram-redis-1:6379/2 | ||
| CELERY_RESULT_BACKEND=redis://scram-redis-1:6379/2 | ||
| SCRAM_API_URL=http://django:8000/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| CELERY_BROKER_URL=redis://scram-redis-2:6379/2 | ||
| CELERY_RESULT_BACKEND=redis://scram-redis-2:6379/2 | ||
| SCRAM_API_URL=http://django-secondary:8000/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| --- | ||
| name: Finish Coverage | ||
|
|
||
| on: | ||
| workflow_run: | ||
| workflows: ["Run pytest", "Run behave"] | ||
| types: | ||
| - completed | ||
|
|
||
| jobs: | ||
| finish: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| needs: [behave, pytest] | ||
| steps: | ||
| - name: Finish Coveralls | ||
| uses: coverallsapp/github-action@v2 | ||
| with: | ||
| parallel-finished: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| # Use a Python image with uv pre-installed | ||
| FROM ghcr.io/astral-sh/uv:python3.14-bookworm-slim | ||
|
|
||
| # Setup a non-root user | ||
| RUN groupadd --system --gid 999 nonroot \ | ||
| && useradd --system --gid 999 --uid 999 --create-home nonroot | ||
|
|
||
| # Install the project into `/app` | ||
| WORKDIR /app | ||
|
|
||
| # Enable bytecode compilation | ||
| ENV UV_COMPILE_BYTECODE=1 | ||
|
|
||
| # Copy from the cache instead of linking since it's a mounted volume | ||
| ENV UV_LINK_MODE=copy | ||
|
|
||
| # Omit development dependencies | ||
| ENV UV_NO_DEV=1 | ||
|
|
||
| # Ensure installed tools can be executed out of the box | ||
| ENV UV_TOOL_BIN_DIR=/usr/local/bin | ||
|
|
||
| COPY ./scheduler/pyproject.toml ./scheduler/uv.lock* ./ | ||
|
|
||
| # Install the project's dependencies using the lockfile and settings | ||
| RUN --mount=type=cache,target=/root/.cache/uv \ | ||
| --mount=type=bind,source=scheduler/uv.lock,target=uv.lock \ | ||
| --mount=type=bind,source=scheduler/pyproject.toml,target=pyproject.toml \ | ||
| uv sync --locked --no-install-project | ||
|
|
||
| # Then, add the rest of the project source code and install it | ||
| # Installing separately from its dependencies allows optimal layer caching | ||
| COPY ./scheduler/src /app/ | ||
|
|
||
| RUN --mount=type=cache,target=/root/.cache/uv \ | ||
| uv sync --locked | ||
|
|
||
| # Place executables in the environment at the front of the path | ||
| ENV PATH="/app/.venv/bin:$PATH" | ||
|
|
||
| # Reset the entrypoint, don't invoke `uv` | ||
| ENTRYPOINT [] | ||
|
|
||
| RUN chown -R nonroot:nonroot /app | ||
| USER nonroot | ||
|
|
||
| CMD ["celery", "-A", "scheduler.app:scram_api_scheduler", "worker", "--loglevel=info", "-E"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.