-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
fix(federation): remove background jobs when removing trusted servers #53760
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
base: master
Are you sure you want to change the base?
fix(federation): remove background jobs when removing trusted servers #53760
Conversation
1e448cd
to
6465f42
Compare
Add event listener to remove matching background jobs for trusted server url. Signed-off-by: Daniel Kesselberg <[email protected]>
6465f42
to
af8e175
Compare
Btw while on it, when another server adds your server as trusted, they run this background job all the time, but as a "recipient" you don't see that someone is asking to get added as a trusted server, neither can you deny it, so the other server gives up, right? |
Yes |
…servers Signed-off-by: Daniel Kesselberg <[email protected]>
iterator_to_array on PHP 8.1 does not accept an array and fails hard with a type error Signed-off-by: Daniel Kesselberg <[email protected]>
apps/federation/tests/Listener/TrustedServerRemovedListenerTest.php
Outdated
Show resolved
Hide resolved
…servers Signed-off-by: Daniel Kesselberg <[email protected]>
…l-different-token
I can't dive into this in the next few days, sorry. |
Summary
Add event listener to remove matching background jobs for trusted server url.
Motivation: When debugging federation locally, I occasionally remove and re-add the server. This can result in multiple background jobs for the same url/target, but with different tokens. I've encountered this issue several times. Therefore, I added an event listener to remove them immediately. I won't backport this change as it has minimal impact on production systems (since those jobs will expire eventually), and it primarily improves the developer experience.
Checklist