Extend celery configuratio by: CELERY_WORKER_CANCEL_LONG_RUNNING_TASKS_ON_CONNECTION_LOSS and CELERY_TASK_ACKS_LATE, for better handling connection loss to brocker #442
This file contains 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
name: Django CI/CD Workflow | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip coverage | |
pip install -r ./vaas/requirements/test.txt | |
- name: Lint with flake8 | |
working-directory: vaas | |
run: | | |
flake8 vaas/ | |
- name: Test with coverage | |
working-directory: vaas | |
run: | | |
coverage run --rcfile=.coveragerc ./manage.py test | |
env: | |
DJANGO_SETTINGS_MODULE: vaas.settings.test |