Commit graph

36 commits

Author SHA1 Message Date
Adeodato Simó
f4133e0236 celerywyrm: allow broker and result backend from the environment
This allows to easily configure an in-memory transport for tests.
2024-07-28 06:42:11 -03:00
Joeri de Ruiter
75f37d7361 Added mypy to scripts and workflow, and some first annotations for celerywyrm 2023-07-22 13:27:43 +02:00
Wesley Aptekar-Cassels
f91fcd518a Increase network timeout in Celery tasks
Since Celery tasks don't affect interactive latency, we should have a
more generous timeout. This also allows admins to set the timeout for
Celery and the web frontend separately, without breaking backwards
compatibility with the previous environment variable.
2023-04-06 01:21:27 -04:00
Wesley Aptekar-Cassels
5bb5d120f0 Set default FLOWER_PORT 2023-03-18 15:35:41 -04:00
Wesley Aptekar-Cassels
b3d3de5374 Use typecasting env functions
Many of these environment variables were probably not actually usable,
since they would be strings if set in the env file. Using the
typecasting functions fixes this, and generally shows the intention of
the code more clearly.
2023-03-18 15:35:08 -04:00
Wesley Aptekar-Cassels
26e34ddffa Add env vars for celery concurrency and time limit 2023-03-07 13:52:02 -05:00
Christof Dorner
afab255c85 Allow empty broker and activity redis password 2023-01-26 17:24:20 +01:00
Robert George
95b66480c9 lint fixes 2023-01-14 18:20:37 -08:00
Robert George
f362343dfa style fixes 2023-01-14 15:44:10 -08:00
Robert George
207abed654 Add support for specifying redis url to support unix sockets 2023-01-14 14:52:54 -08:00
Mouse Reeve
117db78983 Adds auto-create queues option to config 2022-03-17 09:57:25 -07:00
Mouse Reeve
2a436800c4 Schedules automod task 2022-02-26 10:14:47 -08:00
Jade Meskill
900937ee5f
use REDIS_x_DB_INDEX instead of REDIS_x_DB, add optional setting to example env file 2022-01-13 09:16:16 -07:00
Jade Meskill
5a3d108c62
update fomatting to pass automated checks 2022-01-12 22:46:51 -07:00
Jade Meskill
3638e18844
add support for different redis db 2022-01-12 19:44:11 -07:00
Mouse Reeve
e6f7828361 Python formatting 2022-01-05 09:30:54 -08:00
Mouse Reeve
bebb2c167e Use redis with password in dev 2022-01-05 08:52:28 -08:00
Mouse Reeve
e608d8b8ad python formatting 2021-09-07 17:11:32 -07:00
Mouse Reeve
7b2e4eebd2 Remove unused code from celery 2021-09-07 16:33:18 -07:00
Mouse Reeve
c0b662cbd7 Adds priority queues to celery 2021-09-07 16:06:54 -07:00
Mouse Reeve
37dcae4558 Simply celery settings 2021-09-07 14:02:03 -07:00
bcj
17f9682aab Testfixes: Remove extra space + hopefully fix env 2021-06-03 09:07:56 -05:00
bcj
31deb36c85 URL-Encode password in broker_url
Needed to prevent connection errors if the password contains non-urlsafe characters.

Dockerfile change because all the services using it are mirroring ./ in /app now anyway.
Flower needs because it needs bookwyrm in order to read the celerywyrm config (because flower only allows overwriting broker_url from the command line and we want to do it in Python so we have access to a urlencode function).
2021-05-23 23:49:12 -05:00
Mouse Reeve
b4ae639dab Imports bookwyrm settings into celery settings
It was redundant and super bug-prone!
2021-05-10 14:20:27 -07:00
n2no1
92e9ff6cff update links in README and {bookwyrm,celerywyrm}/settings.py files
the link to celery's homepage has been dead for at least several months
activitypub.rocks now supports tls (yay!)
the links to django's docs were for older versions of django than what bookwyrm uses
2021-04-12 11:56:26 -04:00
tofuwabohu
890346f51b Adds default value in celerywyrm 2021-04-09 18:56:21 +02:00
tofuwabohu
a52729daae adds SSL params 2021-04-09 13:28:58 +02:00
D Anzorge
5cbf7bbc71 Ensure EMAIL_USE_TLS is read as a bool 2021-04-09 04:53:18 +02:00
Mouse Reeve
70296e760b Runs black 2021-03-08 08:49:10 -08:00
Mouse Reeve
2d79a52133 Translations working in templates 2021-02-27 16:18:56 -08:00
Mouse Reeve
e559a93f71 Get celery debug settings from env 2020-10-04 14:24:08 -07:00
Mouse Reeve
d4b18678bd Forgot password flow 2020-10-02 13:32:19 -07:00
Mouse Reeve
0b8f8e3659 Fixes celery media path 2020-09-30 19:43:42 -07:00
Mouse Reeve
80cb1c3de2 Adds more tests for books_manager
from 47% to 77%
2020-09-21 11:14:56 -07:00
Mouse Reeve
7bd49f1da5 Renames settings variables 2020-09-21 08:27:12 -07:00
Mouse Reeve
d1f1260640 Renames fr_celery dir to celerywyrm 2020-09-17 14:19:27 -07:00
Renamed from fr_celery/settings.py (Browse further)