mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-25 19:11:09 +00:00
Merge pull request #3151 from dato/celery_inmem
In-memory Celery backend for tests
This commit is contained in:
commit
66dd39e6d8
2 changed files with 8 additions and 7 deletions
|
@ -15,8 +15,12 @@ REDIS_BROKER_URL = env(
|
||||||
f"redis://:{REDIS_BROKER_PASSWORD}@{REDIS_BROKER_HOST}:{REDIS_BROKER_PORT}/{REDIS_BROKER_DB_INDEX}",
|
f"redis://:{REDIS_BROKER_PASSWORD}@{REDIS_BROKER_HOST}:{REDIS_BROKER_PORT}/{REDIS_BROKER_DB_INDEX}",
|
||||||
)
|
)
|
||||||
|
|
||||||
CELERY_BROKER_URL = REDIS_BROKER_URL.replace("unix:", "redis+socket:")
|
CELERY_BROKER_URL = env(
|
||||||
CELERY_RESULT_BACKEND = REDIS_BROKER_URL.replace("unix:", "redis+socket:")
|
"CELERY_BROKER_URL", REDIS_BROKER_URL.replace("unix:", "redis+socket:")
|
||||||
|
)
|
||||||
|
CELERY_RESULT_BACKEND = env(
|
||||||
|
"CELERY_RESULT_BACKEND", REDIS_BROKER_URL.replace("unix:", "redis+socket:")
|
||||||
|
)
|
||||||
|
|
||||||
CELERY_DEFAULT_QUEUE = "low_priority"
|
CELERY_DEFAULT_QUEUE = "low_priority"
|
||||||
CELERY_CREATE_MISSING_QUEUES = True
|
CELERY_CREATE_MISSING_QUEUES = True
|
||||||
|
|
|
@ -15,11 +15,8 @@ env =
|
||||||
ALLOWED_HOSTS = your.domain.here
|
ALLOWED_HOSTS = your.domain.here
|
||||||
BOOKWYRM_DATABASE_BACKEND = postgres
|
BOOKWYRM_DATABASE_BACKEND = postgres
|
||||||
MEDIA_ROOT = images/
|
MEDIA_ROOT = images/
|
||||||
CELERY_BROKER =
|
CELERY_BROKER_URL = memory://
|
||||||
REDIS_BROKER_PORT = 6379
|
CELERY_RESULT_BACKEND = cache+memory://
|
||||||
REDIS_BROKER_PASSWORD = beep
|
|
||||||
REDIS_ACTIVITY_PORT = 6379
|
|
||||||
REDIS_ACTIVITY_PASSWORD = beep
|
|
||||||
USE_DUMMY_CACHE = true
|
USE_DUMMY_CACHE = true
|
||||||
FLOWER_PORT = 8888
|
FLOWER_PORT = 8888
|
||||||
EMAIL_HOST = smtp.mailgun.org
|
EMAIL_HOST = smtp.mailgun.org
|
||||||
|
|
Loading…
Reference in a new issue