Skip to content
Snippets Groups Projects
Commit 94a0579f authored by Auke Klazema's avatar Auke Klazema
Browse files

Task #10986: Added comment to explain the retry

parent f7eb26e9
No related branches found
No related tags found
No related merge requests found
...@@ -131,6 +131,7 @@ class OTDBTriggerListener(OTDBBusListener): ...@@ -131,6 +131,7 @@ class OTDBTriggerListener(OTDBBusListener):
return mom_id, trigger_id return mom_id, trigger_id
def _try_get_mom_id(self, otdb_id): def _try_get_mom_id(self, otdb_id):
# sometimes we are too fast for MoM so we need to retry
mom_id = None mom_id = None
for _ in xrange(10): for _ in xrange(10):
mom_id = self.mom_rpc_client.getMoMIdsForOTDBIds(otdb_id)[otdb_id] mom_id = self.mom_rpc_client.getMoMIdsForOTDBIds(otdb_id)[otdb_id]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment