Commit graph

66 commits

Author SHA1 Message Date
Laura Hausmann
b148c8a0ba
wip: clustered events (ISH-141) 2024-07-24 23:06:47 +02:00
Laura Hausmann
c67984c411
[backend] Manually reformat difficult-to-read switch expressions that got hard wrapped 2024-07-11 17:46:34 +02:00
Laura Hausmann
88bef87ef5
[backend] Improve client error logging in DeliverQueue 2024-07-10 20:11:39 +02:00
Laura Hausmann
70f822ab3d
[backend/core] Don't try to delete remote files from local/object storage 2024-07-02 23:34:16 +02:00
Laura Hausmann
df3a7bdfe5
[backend] Apply formatting rules 2024-06-29 01:06:19 +02:00
Laura Hausmann
d6c3fb028f
[backend/queue] Fix sporadic background task queue errors 2024-06-28 18:54:29 +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
eb167cf482
[backend/federation] Check for Instance.IsSuspended in PreDeliverQueue for ASFollow activities
We're not currently using that property, but we may in the future.
2024-06-19 18:37:43 +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
24bde5ad29
[backend] Use User.IsLocalUser / .IsRemoteUser instead of null-checks where applicable (ISH-370) 2024-06-17 17:25:29 +02:00
Laura Hausmann
0a5e130783
[backend/federation] Log instance blocked failures in inbox queue as debug 2024-06-16 22:36:38 +02:00
Laura Hausmann
571ef8f027
[backend/queue] Improve logging 2024-06-16 18:55:54 +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
adba960f8c
[backend/drive] Check for isLink attribute when handling deletion/expiry for deduplicated files (ISH-334) 2024-05-18 15:53:59 +02:00
Laura Hausmann
9dd34aa7e3
[backend/drive] Improve deletion/expiry logic for deduplicated files (ISH-334) 2024-05-18 15:48:25 +02:00
Laura Hausmann
363b0c930c
[backend/core] Add Guid.ToStringLower() extension method 2024-04-25 18:26:42 +02:00
Laura Hausmann
385f5843f7
[backend/helpers] Rename LDHelpers.Compact(ASActivity) to LDHelpers.CompactToPayload 2024-04-24 04:05:26 +02:00
Laura Hausmann
806bfca099
[backend/core] Improve user deletes (ISH-222) 2024-04-10 20:53:50 +02:00
Laura Hausmann
c5bd380344
[backend] Improved debug logging (ISH-238) 2024-04-10 00:15:46 +02:00
Laura Hausmann
60545e25ae
[backend/core] Fix sporadic "key not found" background task failures 2024-04-07 21:37:46 +02:00
Laura Hausmann
62dde50af2
[backend/core] Support note filters (ISH-97) 2024-03-31 23:56:55 +02:00
Laura Hausmann
07eba89fa0
[backend/queue] Fix BackgroundTaskJobData serialization 2024-03-29 16:08:04 +01:00
Laura Hausmann
f39479ca6b
[backend/queue] JobData shouldn't inherit from Job 2024-03-29 15:34:01 +01:00
Laura Hausmann
aad05c0d22
[backend/cron] Fire UserUnmuted event in ProcessMuteExpiry 2024-03-26 19:11:50 +01:00
Laura Hausmann
8ff938639b
[backend/federation] Improve ASUpdate handling (ISH-223)
This fixes federation of note updates with some AP implementations
2024-03-25 13:51:50 +01: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
a67fe3722d
[backend] Code cleanup 2024-03-24 14:17:02 +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
a408fa247a
[backend] Code cleanup 2024-03-17 13:36:08 +01:00
Laura Hausmann
f41be007d7
[backend/core] Add mute support (ISH-169) 2024-03-14 15:33:54 +01:00
Laura Hausmann
921f6a19b3
[backend/federation] Separate authorized fetch & inbox validation (ISH-127)
This fixes user creates & sporadic errors resulting from creating users during validation of their deletion
2024-03-13 00:21:51 +01:00
Laura Hausmann
57ac4750ad
[backend/core] Allow editing of locally originated polls (ISH-136)
This also improves the behavior of handling remotely originating poll edits.
2024-03-07 20:17:58 +01:00
Laura Hausmann
657bc43761
[backend/core] Finish the polls implementation (ISH-130, ISH-131) 2024-03-07 03:34:52 +01:00
Laura Hausmann
9de208b49b
[backend/federation] Initial poll support (ISH-62) 2024-03-06 00:55:53 +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
a19697c795
[backend/federation] async Task CompactAsync -> void Compact 2024-02-21 19:10:05 +01:00
Laura Hausmann
399595ad1c
[backend/federation] Make LD signatures configurable 2024-02-21 18:56:49 +01:00
Laura Hausmann
d976f82636
[backend/core] Delayed queue handling (ISH-86) 2024-02-19 23:27:12 +01:00
Laura Hausmann
de6211d6fb
[backend/federation] Handle JSON-LD signed requests in authorized fetch mode 2024-02-18 00:36:58 +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
69610a61d1
[backend/federation] Enforce matching activity actor & auth fetch signature user 2024-02-17 02:06:09 +01:00
Laura Hausmann
2eb9482538
[backend/queues] Implement IEquatable<T> in PreDeliverQueue.InboxQueryResult (ISH-3) 2024-02-16 02:43:04 +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