-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minimum required celery version is 5.0 (#136)
Co-authored-by: Maciej Gol <[email protected]>
- Loading branch information
1 parent
665afff
commit 4769da1
Showing
12 changed files
with
58 additions
and
32 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
version: "3.6" | ||
services: | ||
postgres: | ||
image: postgres:13 | ||
environment: | ||
- POSTGRES_PASSWORD=qwe123 | ||
- POSTGRES_USER=tenant_celery | ||
- POSTGRES_DB=tenant_celery | ||
network_mode: host | ||
|
||
rabbitmq: | ||
image: rabbitmq | ||
network_mode: host | ||
|
||
redis: | ||
image: redis | ||
network_mode: host | ||
|
||
app: | ||
image: "python:${PYTHON_VERSION:-3.8}-slim" | ||
depends_on: | ||
- postgres | ||
- redis | ||
environment: | ||
- DATABASE_HOST=postgres | ||
- BROKER_URL=${BROKER_URL:-amqp://guest:guest@rabbitmq:5672/} | ||
- ADDITIONAL_REQUIREMENTS=${ADDITIONAL_REQUIREMENTS} | ||
- TASK_TENANT_CACHE_SECONDS=10 | ||
|
||
volumes: | ||
- ./tenant_schemas_celery:/app/tenant_schemas_celery | ||
- ./test_app:/app/test_app | ||
- ./requirements.txt:/app/requirements.txt | ||
- ./__app_run_tests:/app/__app_run_tests | ||
- ./setup.py:/app/setup.py | ||
- ./VERSION:/app/VERSION | ||
- ./README.md:/app/README.md | ||
|
||
command: ["bash", "-c", "cd /app && ./__app_run_tests"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
. .env/bin/activate | ||
cd test_app | ||
export DJANGO_SETTINGS_MODULE=test_app.settings | ||
|
||
celery -A tenant_schemas_celery.test_app:app worker -l INFO |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from __future__ import absolute_import | ||
|
||
import time | ||
|
||
import pytest | ||
|
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
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
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
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
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
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
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