Open einhverfr opened 8 months ago
For now, I think the simplest would be to check if the replication slot is set up and if it is active. this could be done on PGObject connection as a basic check.
On further thought this would impact testability in important ways. I think this problem needs more thought and we should bump to research after 1.0
One option would be to have a function which checks that the replication slot is in use and raises an error if not. Some other checks could be added as well. We need to think this through carefully and then add them.
This also means that on connection failure, schaufels should just stop and remain stopped until the effort is made to start them via the Lenkwerk agent.