Laura Hausmann
24b412bd75
[sln] Reformat code
2024-11-20 00:48:29 +01:00
Laura Hausmann
7dec2514da
[sln] Apply code style
2024-11-20 00:48:29 +01:00
Laura Hausmann
9481e1d7fb
[backend/federation] Fix instances returning non-HTTP errors not getting marked as unresponsive
...
This fixes e.g. DNS errors from occurring perpetually when trying to federate with dead instances.
2024-09-15 16:49:21 +02:00
Laura Hausmann
9af06c58a9
[backend] Code cleanup
2024-08-18 21:06:54 +02:00
Laura Hausmann
dea43be619
[backend/core] Remove userPrivateKey cache in deliver queue
...
There's no performance difference between fetching just the private key from the user_keypair table and the previous caching implementation, so there's no point in keeping it in the cache.
2024-08-18 21:06:33 +02:00
Laura Hausmann
88bef87ef5
[backend] Improve client error logging in DeliverQueue
2024-07-10 20:11:39 +02:00
Laura Hausmann
583e954106
[backend/federation] Don't mark client error deliver jobs as successful
2024-06-23 14:45:04 +02:00
Laura Hausmann
d5a5a3d464
[backend/federation] Don't retry deliver jobs that returned a client error (except for HTTP 429)
2024-06-23 14:38:45 +02:00
Laura Hausmann
3599150603
[backend/database] Add Exception column to Job table
2024-06-21 19:18:31 +02:00
Laura Hausmann
19c9b7bf90
[backend/database] Add StackTrace column to Job table
2024-06-21 14:05:34 +02:00
Laura Hausmann
9dbc7cfc14
[backend/federation] Filter skipped & blocked instances in PreDeliverQueue (ISH-366)
...
This:
- improves performance (because we can check them in batches)
- improves efficiency (because we don't create deliver jobs that get discarded immediately)
- allows us to check whether the activity is an ASFollow & let it through if it is (for skipped instances filter only)
We still check for blocked instances in the deliver queue in case a deliver job is created via another code path.
2024-06-19 17:37:57 +02:00
Laura Hausmann
35148d7796
[backend/queue] Add queue processor timeout
...
For now this is hardcoded per queue, but this will be configurable down the line.
2024-06-13 22:41:41 +02:00
Laura Hausmann
aa21e4b05a
[backend/queue] Make queue concurrency configurable
2024-06-10 18:18:39 +02:00
Laura Hausmann
c5bd380344
[backend] Improved debug logging (ISH-238)
2024-04-10 00:15:46 +02:00
Laura Hausmann
736328078d
[backend/core] Fix non-UTC timestamp in DeliverQueue delayed job handler
2024-03-24 14:18:03 +01:00
Laura Hausmann
9698e3d36d
[backend/core] Replace redis-based queue system with a postgres-based one (ISH-212)
2024-03-24 00:17:28 +01:00
Laura Hausmann
c6300d1c96
[backend/core] Replace IDistributedCache with postgres k/v cache (ISH-212)
2024-03-23 19:10:27 +01:00
Laura Hausmann
6b6e320012
[backend/core] Fix instance isNotResponding status
2024-02-29 19:25:00 +01:00
Laura Hausmann
489941adcc
[backend/federation] Skip dead instances in deliver queue
2024-02-26 22:32:28 +01:00
Laura Hausmann
46b60c8779
[backend/federation] Update instance metadata in background when activities are delivered / received (ISH-8)
2024-02-26 22:18:27 +01:00
Laura Hausmann
d976f82636
[backend/core] Delayed queue handling (ISH-86)
2024-02-19 23:27:12 +01:00
Laura Hausmann
d4e1d92771
[backend] Code cleanup: switch to BSD braces style, tweak code style
2024-02-17 02:31:00 +01:00
Laura Hausmann
db3a36264e
[backend/federation] Fix federation control for deliver jobs to split domain users with domain mismatch (ISH-3)
2024-02-16 02:28:14 +01:00
Laura Hausmann
5978f1abc4
[backend] Implement federation control (ISH-2)
2024-02-07 17:52:41 +01:00
Laura Hausmann
f099d6ad41
[backend/queue] Fix deliver queue proto contract
2024-02-06 21:41:58 +01:00
Laura Hausmann
f4a584b46a
Methods that return a non-generic Task should also end in Async
2024-01-28 22:29:09 +01:00
Laura Hausmann
626b267692
All methods that return a Task should end in Async
2024-01-28 22:21:58 +01:00
Laura Hausmann
3c95f4a0e3
Significantly more powerful queue system
2024-01-28 22:04:53 +01:00
Laura Hausmann
e4211fde56
Outgoing federation
2024-01-27 01:18:21 +01:00
Laura Hausmann
8d4a20896c
Federation groundwork
2024-01-25 01:36:07 +01:00
Laura Hausmann
59f2e93fee
Add stub inbox queue processor
2024-01-25 00:22:05 +01:00
Laura Hausmann
4c12cbf65c
Add basic queue system
2024-01-24 23:49:01 +01:00