1
0
Fork 0
bookwyrm/bookwyrm/views
Mouse Reeve 779d2b0694 Attempt to complete inbox requests synchronously
When an inbox activity comes in from another fediverse instance, the
behavior prior to this commit was always to immediately give a 200
response to the external server and then create a celery activity
(usually in the MEDIUM_PRIORITY queue) to complete it.

Instead, this would receive a request and try to complete it without
making any http requests (which would make the request take too long to
process). If an external request is required to complete the activity, a
task is created and added to the queue.

Ideally, this will cause some tasks to happen very promptly, and reduce
the load on celery, which would help queued tasks happen more quickly as
well.

One downside is that this will make completing http requests from
external servers slowing (since it's doing a bunch of thinking before
responding).
2023-02-20 11:05:18 -08:00
..
admin Merge pull request #2644 from rrgeorge/rrgeorge/csp 2023-02-10 16:37:39 -08:00
books fix: books can have non-decimal series numbers 2023-02-07 12:05:20 +00:00
imports Import Limit Bugfix and lint 2023-01-05 23:37:43 +01:00
landing Merge pull request #2491 from chdorner/register-tz-support 2022-12-11 14:49:29 -08:00
list Merge pull request #2586 from asmaloney/fix-duplicate-suggestions 2023-01-11 08:40:32 -08:00
preferences show otp_secret when setting up 2fa 2022-11-16 20:30:06 +01:00
shelf Black 2023-01-01 19:45:12 +01:00
__init__.py Merge branch 'main' into book-series-v1 2023-02-07 11:57:39 +00:00
annual_summary.py Minor performance improvements 2023-01-27 20:24:53 +01:00
author.py Catches places where form.save() needs the request 2022-09-08 11:02:17 -07:00
directory.py Use recently active as the default sort order 2021-09-28 15:51:49 -07:00
discover.py Show quotes without content as large discover cards 2021-09-06 08:47:59 -07:00
feed.py Optimize get_suggested_books 2023-01-30 06:45:44 +01:00
follow.py Adds test to catch notification error 2022-07-09 12:29:29 -07:00
get_started.py Removes explicit calls to raise_not_editable from views 2022-09-08 11:03:06 -07:00
goal.py Check permissions automatically on form save 2022-08-05 09:56:32 -07:00
group.py Check permissions automatically on form save 2022-08-05 09:56:32 -07:00
helpers.py Refactors how mentions are collected 2022-08-05 14:06:39 -07:00
inbox.py Attempt to complete inbox requests synchronously 2023-02-20 11:05:18 -08:00
interaction.py Remmoves insecure redirects 2022-07-14 11:22:17 -07:00
isbn.py Fixes isbn view 2022-08-05 11:44:10 -07:00
notifications.py Fixes html on notifications page 2022-07-06 19:16:14 -07:00
outbox.py New version of black, new whitespace 2021-04-26 09:15:42 -07:00
reading.py Black 2023-01-01 19:45:12 +01:00
relationships.py Merges follower/following views 2022-07-29 13:07:15 -07:00
report.py Catches places where form.save() needs the request 2022-09-08 11:02:17 -07:00
rss_feed.py Fixed Object Selection for RSS Feeds 2023-01-23 15:17:20 +01:00
search.py lint 2023-02-03 12:03:52 -08:00
setup.py Adds setup views tests 2022-02-17 14:55:48 -08:00
status.py Black 2023-01-01 19:45:12 +01:00
updates.py Updates tests 2022-01-27 18:23:31 -08:00
user.py Add new user tab listing only reviews and comments 2022-12-11 20:24:00 +01:00
wellknown.py code cleanup 2021-11-28 21:38:28 +11:00