gotosocial/internal/processing
kim 87cff71af9
[feature] persist worker queues to db (#3042)
* persist queued worker tasks to database on shutdown, fill worker queues from database on startup

* ensure the tasks are sorted by creation time before pushing them

* add migration to insert WorkerTask{} into database, add test for worker task persistence

* add test for recovering worker queues from database

* quick tweak

* whoops we ended up with double cleaner job scheduling

* insert each task separately, because bun is throwing some reflection error??

* add specific checking of cancelled worker contexts

* add http request signing to deliveries recovered from database

* add test for outgoing public key ID being correctly set on delivery

* replace select with Queue.PopCtx()

* get rid of loop now we don't use it

* remove field now we don't use it

* ensure that signing func is set

* header values weren't being copied over 🤦

* use ptr for httpclient.Request in delivery

* move worker queue filling to later in server init process

* fix rebase issues

* make logging less shouty

* use slices.Delete() instead of copying / reslicing

* have database return tasks in ascending order instead of sorting them

* add a 1 minute timeout to persisting worker queues
2024-07-30 13:58:31 +02:00
..
account [feature] Implement following hashtags (#3141) 2024-07-29 19:26:31 +01:00
admin [feature] persist worker queues to db (#3042) 2024-07-30 13:58:31 +02:00
advancedmigrations [feature] Conversations API (#3013) 2024-07-23 20:44:31 +01:00
common [chore] Add interaction filter to complement existing visibility filter (#3111) 2024-07-24 12:27:42 +01:00
conversations [feature] Conversations API (#3013) 2024-07-23 20:44:31 +01:00
fedi [feature] Federate interaction policies + Accepts; enforce policies (#3138) 2024-07-26 12:04:28 +02:00
filters [chore] media pipeline improvements (#3110) 2024-07-17 15:26:33 +00:00
list [chore] deinterface the typeutils.Converter and update to use state structure (#2217) 2023-09-23 18:44:11 +02:00
markers [chore] deinterface the typeutils.Converter and update to use state structure (#2217) 2023-09-23 18:44:11 +02:00
media [bugfix] media.Processor{}.GetFile() returning 404s on first call, correctly loading on 2nd (#3129) 2024-07-22 18:45:48 +01:00
polls [chore] media and emoji refactoring (#3000) 2024-06-26 16:01:16 +01:00
report [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
search [feature] Implement following hashtags (#3141) 2024-07-29 19:26:31 +01:00
status [feature] Federate interaction policies + Accepts; enforce policies (#3138) 2024-07-26 12:04:28 +02:00
stream [chore] Add interaction filter to complement existing visibility filter (#3111) 2024-07-24 12:27:42 +01:00
tags [feature] Implement following hashtags (#3141) 2024-07-29 19:26:31 +01:00
timeline [chore] Add interaction filter to complement existing visibility filter (#3111) 2024-07-24 12:27:42 +01:00
user [feature] Self-serve email change for users (#2957) 2024-06-06 14:43:25 +01:00
workers [feature] Implement following hashtags (#3141) 2024-07-29 19:26:31 +01:00
app.go [performance] cached oauth database types (#2838) 2024-04-15 14:22:21 +01:00
followrequest_test.go [performance] massively improved ActivityPub delivery worker efficiency (#2812) 2024-04-11 11:45:35 +02:00
instance.go [chore] media and emoji refactoring (#3000) 2024-06-26 16:01:16 +01:00
oauth.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
parsemention_test.go [bugfix] Refactor parse mention, fix local mention bug (#2657) 2024-02-19 03:48:20 +00:00
parsemention.go [bugfix] Refactor parse mention, fix local mention bug (#2657) 2024-02-19 03:48:20 +00:00
preferences_test.go [feature] Implement the preferences client API (#1740) 2023-05-06 17:42:58 +02:00
preferences.go [chore] Move local account settings to separate db table (#2770) 2024-03-22 14:03:46 +01:00
processor_test.go [chore] Add interaction filter to complement existing visibility filter (#3111) 2024-07-24 12:27:42 +01:00
processor.go [feature] Implement following hashtags (#3141) 2024-07-29 19:26:31 +01:00