We were syncing it already, but only if we had received a "pipeline
aborted" already. This might be not the case, as probably the tests
test_errors_raised_on_commit which has been failing in CI randomly for
weeks has been trying to say. Other similar branches (e.g. on commit)
don't have the same check for aborted state.
)
# Get out of a "pipeline aborted" state
- if self._pipeline and self.pgconn.pipeline_status == ABORTED:
+ if self._pipeline:
yield from self._pipeline._sync_gen()
if self.pgconn.transaction_status == IDLE: