Mouse Reeve
035ca6fec2
Merge pull request #2795 from WesleyAC/add-postgres-instrumentation
...
Add automatic instrumentation to Postgres queries
2023-04-07 06:39:47 -07:00
Wesley Aptekar-Cassels
61453d48e6
Add automatic instrumentation to Postgres queries
...
This enables automatic instrumentation of Postgres queries when
OpenTelemetry instrumentation is enabled, which will help with debugging
performance problems.
2023-04-07 01:58:49 -04: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
Mouse Reeve
e9d08e7424
Merge pull request #2744 from WesleyAC/opentelemetry-console-exporter
...
Add OpenTelemetry console exporter option
2023-03-20 14:26:24 -07:00
Wesley Aptekar-Cassels
63ab3abe67
Add setting for OpenTelemetry console exporter
...
This is primarily useful for debugging changes to the OpenTelemetry
setup.
2023-03-18 15:47:30 -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
Mouse Reeve
7811a9920e
Copy config from prod branch to main
2022-02-04 18:36:12 -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
Mouse Reeve
590338138c
Populate streams tasks
2021-08-07 17:44:40 -07:00
Mouse Reeve
5b6048e4c6
Merge branch 'main' into suggestions-redis
2021-06-18 16:48:04 -07:00
Mouse Reeve
973b23856c
Merge branch 'main' into opengraph-image-generation
2021-06-17 15:17:54 -07:00
bcj
17f9682aab
Testfixes: Remove extra space + hopefully fix env
2021-06-03 09:07:56 -05:00
Joachim
d1737b44bd
First functioning commit
...
TODO
- [ ] Delay task (Celery?)
- [ ] Store the image in a subfolder unique to the edition, to make cleaning up the image easy
- [ ] Clean up the image before replacing it
- [ ] Ensure that the image will be cleaned when the edition is deleted ??
- [ ] Use instance custom colors?
- [ ] Use book cover color base?
2021-05-25 00:41:53 +02: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
edfc27a3cd
Moves suggestion logic to celery
2021-05-22 15:53:07 -07: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
81e2021f92
Move handlers to activitypub classes
2021-02-15 18:47:08 -08:00
Mouse Reeve
e169565e00
Makes expanding book data fully part of the connector
2021-01-02 07:45:45 -08:00
Mouse Reeve
cc42e9d149
Asyncronously set related fields
2020-12-08 09:43:12 -08:00
Mouse Reeve
b0202eb8e8
Remove special remote user handling code
...
also fixes date parsing
2020-11-28 11:48:17 -08:00
Mouse Reeve
0b34b6cd96
Updates code for loading remote statuses
2020-11-06 14:56:05 -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
71d5c790b8
Merge pull request #200 from mouse-reeve/books-managers-tests
...
Books managers tests
2020-09-23 07:38:06 -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
425da16fd6
Fixes linter issues
2020-09-21 10:25:26 -07:00
Mouse Reeve
7bd49f1da5
Renames settings variables
2020-09-21 08:27:12 -07:00