chore(ci): Start Celery worker as a background process (#29371)

This commit is contained in:
John Bodley
2024-06-26 12:10:05 -07:00
committed by GitHub
parent 53450b7e2f
commit 5948dac889
3 changed files with 34 additions and 10 deletions

View File

@@ -67,9 +67,11 @@ jobs:
run: |
echo "${{ steps.check.outputs.python }}"
setup-postgres
- name: Run celery
- name: Start Celery worker
if: steps.check.outputs.python
run: celery --app=superset.tasks.celery_app:app worker -Ofair -c 2 &
uses: ./.github/actions/cached-dependencies
with:
run: celery-worker
- name: Python unit tests (PostgreSQL)
if: steps.check.outputs.python
run: |
@@ -132,9 +134,11 @@ jobs:
uses: ./.github/actions/cached-dependencies
with:
run: setup-postgres
- name: Run celery
- name: Start Celery worker
if: steps.check.outputs.python
run: celery --app=superset.tasks.celery_app:app worker -Ofair -c 2 &
uses: ./.github/actions/cached-dependencies
with:
run: celery-worker
- name: Python unit tests (PostgreSQL)
if: steps.check.outputs.python
run: |