Merge branch 'develop' into 2.0/sync_from_1.0

This commit is contained in:
Milan Kolar 2019-04-09 22:38:28 +02:00
commit 6c0bba1168
58 changed files with 2788 additions and 675 deletions

View file

@ -118,15 +118,18 @@ class FtrackServer():
if len(functions) < 1:
raise Exception
function_counter = 0
for function in functions:
try:
function['register'](self.session)
if function_counter%7 == 0:
time.sleep(0.1)
function_counter += 1
except Exception as e:
msg = '"{}" - register was not successful ({})'.format(
function['name'], str(e)
)
log.warning(msg)
time.sleep(0.05)
def run_server(self):
self.session = ftrack_api.Session(auto_connect_event_hub=True,)