Commit graph

23 commits

Author SHA1 Message Date
Wesley Aptekar-Cassels 3e78e398c0 Switch from priority queues to function-based queues
Fixes: #2907
2023-07-20 12:25:30 -04:00
Wesley Aptekar-Cassels 1048638e30 Stop ignoring task results
This is essentially a revert of 9cbff312a. The commit was at the advice
of the Celery docs for optimization, but I've since decided that the
downsides in terms of making things harder to debug (it makes Flower
nearly useless, for instance) are bigger than the upsides in performance
gain (which seem extremely small in practice, given how long our tasks
take, and the number of tasks we have).
2023-04-07 21:51:44 -04:00
Mouse Reeve 4e3513bd41
Merge pull request #2784 from WesleyAC/add-status-cache-get-audience
Only call get_audience once in add_status
2023-04-07 06:43:04 -07:00
Wesley Aptekar-Cassels 78607a0c3e Remove get_stores_for_object abstract method
The implementations still have and use this, we've just removed this
concept from the RedisStore abstraction, which simplifies things
somewhat.
2023-04-05 22:07:38 -04:00
Wesley Aptekar-Cassels 68c6a9e748 Rename remove_object_from_related_stores
This makes the stores argument required, making it simpler to change the
code.
2023-04-05 22:06:09 -04:00
Wesley Aptekar-Cassels 93bd66ad3e Refactor to delete add_object_to_related_stores
This is working towards some optimizations.
2023-04-05 21:48:22 -04:00
Josh Soref 7b59f38cc8 spelling: owner
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Wesley Aptekar-Cassels 9cbff312a5 Ignore Celery task results
Since we don't use the results of our Celery tasks (all of them return
None implicitly), it's prudent to set the ignore_result flag, for a
potential performance improvement. See the Celery docs for details [1].

We could do this with the global CELERY_IGNORE_RESULT setting, but it
offers more flexibility if we want to use task results in the future to
set it on a per-task basis.

[1]: https://docs.celeryq.dev/en/stable/userguide/tasks.html#ignore-results-you-don-t-want
2023-03-08 02:12:13 -05:00
Mouse Reeve 3ad0a5d073 Use update_fields to limit remove_list_tasks
If we know what fields were updated, we can avoid running this task.
This also adds some mocks where they are needed for the list view.
2022-07-02 13:23:23 -07:00
Mouse Reeve aefb0c9b14 Re-consider list privacy on edit
Please run ci??
2022-03-24 12:49:38 -07:00
Mouse Reeve 8a8ce0c0d4 Fixes deletion of lists 2022-01-07 13:30:11 -08:00
Mouse Reeve 23e498879e Fixes account create tasks 2022-01-04 14:17:14 -08:00
Mouse Reeve 3dd7847d7b Only remove non-public lists on unfollow 2022-01-04 13:46:21 -08:00
Mouse Reeve cc37d7404e Fixes calls to add lists 2021-12-30 11:58:27 -08:00
Mouse Reeve 906e0c9c7c Renames function for loading lists 2021-12-30 10:40:26 -08:00
Mouse Reeve 9f6918767b Corrects documentation on sort order 2021-12-29 17:41:31 -08:00
Mouse Reeve 2640c26bb1 Fixes wording in comments 2021-12-29 17:39:14 -08:00
Mouse Reeve 0012f4464d Consider group membership for list cache 2021-12-14 11:07:36 -08:00
Mouse Reeve eb4a399472 Updates models tests 2021-12-09 12:43:09 -08:00
Mouse Reeve 3bf1121fa6 Signals tests 2021-11-17 09:38:02 -08:00
Mouse Reeve 157d891681 Adds tests files 2021-11-17 09:10:28 -08:00
Mouse Reeve 1d28c7e73d Load lists from redis cache 2021-11-16 09:21:12 -08:00
Mouse Reeve fc520fdbdc Adds quick first pass on lists stream manager 2021-11-15 13:09:17 -08:00