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

[feature] persist worker queues to db #3042

Conversation

NyaaaWhatsUpDoc
Copy link
Member

Description

Persists the state of worker queues to the database on shutdown, and attempts to recover them from database on startup.

Before this is reviewed (or even has a readable diff), it depends on both #3000 and #2989.

This replaces #3019 as frankly trying to rebase that thing was horrible, it was easier to just cherry-pick the stream of commits ontop of main.

Checklist

  • I/we have read the GoToSocial contribution guidelines.
  • I/we have discussed the proposed changes already, either in an issue on the repository, or in the Matrix chat.
  • I/we have not leveraged AI to create the proposed changes.
  • I/we have performed a self-review of added code.
  • I/we have written code that is legible and maintainable by others.
  • I/we have commented the added code, particularly in hard-to-understand areas.
  • I/we have made any necessary changes to documentation.
  • I/we have added tests that cover new code.
  • I/we have run tests and they pass locally with the changes.
  • I/we have run go fmt ./... and golangci-lint run.

cmd/gotosocial/action/server/server.go Outdated Show resolved Hide resolved
internal/gtsmodel/workertask.go Show resolved Hide resolved
internal/processing/admin/workertask.go Outdated Show resolved Hide resolved
internal/processing/admin/workertask.go Outdated Show resolved Hide resolved
internal/processing/admin/workertask.go Outdated Show resolved Hide resolved
internal/processing/admin/workertask.go Outdated Show resolved Hide resolved
@NyaaaWhatsUpDoc NyaaaWhatsUpDoc force-pushed the feature/persist-worker-queues-to-db.2 branch from b462cd9 to 5f07dd1 Compare July 12, 2024 11:48
@NyaaaWhatsUpDoc NyaaaWhatsUpDoc force-pushed the feature/persist-worker-queues-to-db.2 branch from 5f07dd1 to 984fe25 Compare July 30, 2024 11:34
@tsmethurst tsmethurst merged commit 87cff71 into superseriousbusiness:main Jul 30, 2024
2 checks passed
@tsmethurst
Copy link
Contributor

Nice one :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants