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

@@ -117,6 +117,20 @@ testdata() {
say "::endgroup::"
}
celery-worker() {
cd "$GITHUB_WORKSPACE"
say "::group::Start Celery worker"
# must specify PYTHONPATH to make `tests.superset_test_config` importable
export PYTHONPATH="$GITHUB_WORKSPACE"
celery \
--app=superset.tasks.celery_app:app \
worker \
--concurrency=2 \
--detach \
--optimization=fair
say "::endgroup::"
}
cypress-install() {
cd "$GITHUB_WORKSPACE/superset-frontend/cypress-base"