mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-06-28 09:50:38 +00:00
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). |
||
---|---|---|
.. | ||
__init__.py | ||
base_activity.py | ||
book.py | ||
image.py | ||
note.py | ||
ordered_collection.py | ||
person.py | ||
response.py | ||
verbs.py |