Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persistently store activity queue tasks #2142

Closed
Nutomic opened this issue Mar 21, 2022 · 3 comments
Closed

Persistently store activity queue tasks #2142

Nutomic opened this issue Mar 21, 2022 · 3 comments
Labels
area: database area: federation support federation via activitypub enhancement New feature or request

Comments

@Nutomic
Copy link
Member

Nutomic commented Mar 21, 2022

In case that Lemmy fails to send an outgoing activity for some reason, the send is retried multiple times over the next minutes/hours. These retries are only stored in memory, meaning that if Lemmy is restarted, they are completely discarded. It would be good if we could store these tasks persistently in the database, so that they can be restored on start.

This would require implementing background_jobs_core::Storage for Postgres, or using background_jobs_sled_storage.

As most Lemmy instances are running permanently, and only restart every few weeks for updates, this is rather low priority.

@Nutomic Nutomic added enhancement New feature or request area: federation support federation via activitypub area: database labels Mar 21, 2022
@asonix
Copy link
Collaborator

asonix commented Mar 21, 2022

fwiw I think a postgres backend would be preferable for lemmy, since it already has a postgres dependency

@Nutomic
Copy link
Member Author

Nutomic commented Jun 14, 2023

Upstream issue

@Nutomic
Copy link
Member Author

Nutomic commented Oct 2, 2023

#3605

@Nutomic Nutomic closed this as completed Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: database area: federation support federation via activitypub enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants