bookwyrm/bookwyrm/activitypub
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
..
__init__.py New version of black, new whitespace 2021-04-26 09:15:42 -07:00
base_activity.py Attempt to complete inbox requests synchronously 2023-02-20 11:05:18 -08:00
book.py Here we go again! 2023-01-15 09:41:39 +01:00
image.py New version of black, new whitespace 2021-04-26 09:15:42 -07:00
note.py Use edit date to track is status has been updated 2021-10-15 08:56:07 -07:00
ordered_collection.py More pylint fixes 2021-06-18 14:29:24 -07:00
person.py Add option to hide follows 2022-02-28 11:48:49 -08:00
response.py More pylint fixes 2021-06-18 14:29:24 -07:00
verbs.py Attempt to complete inbox requests synchronously 2023-02-20 11:05:18 -08:00