File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ def main():
29
29
30
30
def process_domain_controller_topo (db_instance ):
31
31
while True :
32
+ time .sleep (int (OXP_PULL_INTERVAL ))
32
33
latest_topology_exists = False
33
34
latest_topology = db_instance .read_from_db ("latest_topology" )
34
35
@@ -52,11 +53,9 @@ def process_domain_controller_topo(db_instance):
52
53
pulled_topology = urllib .request .urlopen (OXP_PULL_URL ).read ()
53
54
except (urllib .request .URLError , ConnectionResetError ):
54
55
logger .debug ("Error connecting to domain controller..." )
55
- time .sleep (int (OXP_PULL_INTERVAL ))
56
56
continue
57
57
58
58
if not pulled_topology :
59
- time .sleep (int (OXP_PULL_INTERVAL ))
60
59
continue
61
60
62
61
logger .debug ("Pulled request from domain controller" )
@@ -90,8 +89,6 @@ def process_domain_controller_topo(db_instance):
90
89
# Signal to end keep alive pings.
91
90
rpc_producer .stop ()
92
91
93
- time .sleep (int (OXP_PULL_INTERVAL ))
94
-
95
92
96
93
if __name__ == "__main__" :
97
94
main ()
You can’t perform that action at this time.
0 commit comments