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

@@ -58,9 +58,11 @@ jobs:
uses: ./.github/actions/cached-dependencies
with:
run: setup-mysql
- 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 integration tests (MySQL)
if: steps.check.outputs.python
run: |
@@ -117,9 +119,11 @@ jobs:
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 integration tests (PostgreSQL)
if: steps.check.outputs.python
run: |
@@ -167,9 +171,11 @@ jobs:
run: |
# sqlite needs this working directory
mkdir ${{ github.workspace }}/.temp
- 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 integration tests (SQLite)
if: steps.check.outputs.python
run: |