unitypredict 1.1.57__tar.gz → 1.1.58__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: unitypredict
3
- Version: 1.1.57
3
+ Version: 1.1.58
4
4
  Summary:
5
5
  Home-page: https://unitypredict.com
6
6
  Author: UnityPredict
@@ -300,7 +300,7 @@ class UnityPredictClient:
300
300
  if (finalResponseJson.get('status') == 'Processing'):
301
301
  statusUrl = finalResponseJson.get('statusUrl') # this is probably a long-running inference
302
302
 
303
- loopCount = 0
303
+ loopWaitTime = 0.25
304
304
  startTime = time.time()
305
305
  maxPredictTime = self.ApiMaxTimeout
306
306
  maxTimeExceed = False
@@ -315,10 +315,10 @@ class UnityPredictClient:
315
315
  response = requests.get(url = statusUrl, headers={"Authorization": "Bearer {}".format(apiKey)})
316
316
  finalResponseJson = response.json()
317
317
 
318
- delay = min(loopCount * 2, 30)
318
+ delay = min(loopWaitTime, 30)
319
319
  time.sleep(delay)
320
320
 
321
- loopCount = loopCount + 1
321
+ loopWaitTime *= 2
322
322
 
323
323
  print('Waiting {} seconds for job to finish...'.format(delay))
324
324
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: unitypredict
3
- Version: 1.1.57
3
+ Version: 1.1.58
4
4
  Summary:
5
5
  Home-page: https://unitypredict.com
6
6
  Author: UnityPredict
File without changes
File without changes
File without changes