mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 04:44:52 -04:00
Bug fixes whilst putting it all together
This commit is contained in:
parent
b98cd03193
commit
04c9751f24
3 changed files with 8 additions and 6 deletions
|
@ -175,7 +175,7 @@ class _TransactionController(object):
|
|||
@defer.inlineCallbacks
|
||||
def _is_service_up(self, service):
|
||||
state = yield self.store.get_appservice_state(service)
|
||||
defer.returnValue(state == ApplicationServiceState.UP)
|
||||
defer.returnValue(state == ApplicationServiceState.UP or state is None)
|
||||
|
||||
|
||||
class _Recoverer(object):
|
||||
|
@ -208,6 +208,8 @@ class _Recoverer(object):
|
|||
def retry(self):
|
||||
txn = yield self._get_oldest_txn()
|
||||
if txn:
|
||||
logger.info("Retrying transaction %s for service %s",
|
||||
txn.id, txn.service)
|
||||
if txn.send(self.as_api):
|
||||
txn.complete(self.store)
|
||||
# reset the backoff counter and retry immediately
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue