-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Expire federation jobs #5923
Expire federation jobs #5923
Conversation
Signed-off-by: Bjoern Schiessle <[email protected]>
Signed-off-by: Bjoern Schiessle <[email protected]>
Signed-off-by: Bjoern Schiessle <[email protected]>
Signed-off-by: Bjoern Schiessle <[email protected]>
…re the other server will decline and the background job will be removed Signed-off-by: Bjoern Schiessle <[email protected]>
* Inject the timefacotry so we can mock it properly in the tests. * Extended unit tests to cover the new paths Signed-off-by: Roeland Jago Douma <[email protected]>
0560bd5
to
bc54e6f
Compare
Codecov Report
@@ Coverage Diff @@
## master #5923 +/- ##
===========================================
+ Coverage 53.06% 53.1% +0.04%
+ Complexity 22761 22757 -4
===========================================
Files 1404 1404
Lines 88064 88112 +48
Branches 1327 1327
===========================================
+ Hits 46730 46795 +65
+ Misses 41334 41317 -17
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine by me.
But maybe we should also make it a timed job. So that we try at most once an hour or so? => Future work
@@ -74,7 +75,8 @@ private function registerService() { | |||
$server->getJobList(), | |||
$server->getSecureRandom(), | |||
$server->getConfig(), | |||
$server->getEventDispatcher() | |||
$server->getEventDispatcher(), | |||
$server->query(ITimeFactory::class) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should work without this.
I will try it.
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Cleaned it up a bit, works 👍 |
After trying for 30 days to create a trusted server relationship without success we kill the background job.
Might also prevent things like: #5880