-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
We need a way to wake up an AppService push task manually #14240
Comments
Note that the maximum backoff is 8.5 minutes synapse/synapse/appservice/scheduler.py Lines 490 to 493 in d736d5c
so whilst it might still be nice to have a way to wake the AS sender when the AS pokes the homeserver, I wouldn't worry about outages on the order of 48 hours or even an hour :) The equivalent approach we take with federation is to clear the backoff when we receive anything from the remote homeserver. We might consider something like that for application services as well; e.g. when the AS makes a request to the homeserver we clear the backoff for that appservice. |
Sounds like the same kind of problem that #12685 wanted to address? |
That's much better. Still a problem in both CI and production, though.
That sounds like the ideal solution, yes. |
I think this is a dup of #1334 but I am closing that in favor of this as this has more info/is better structured. |
This is also useful if you are building an application service yourself. When it's still not working, it's not going to be reachable or it might crash. So exponential backoff, while a reasonable part of the spec, can be annoying for people wanting to write Matrix integrations or bridges, and would be nice to disable. |
Description:
Current scenario:
I'd like the ability to replace 4. with
As discussed over #synapse-dev, there are also use cases for CI testing an AppService, as CI tests can be very sensitive to timeouts.
The text was updated successfully, but these errors were encountered: