polyanalyst6api 0.36.2__tar.gz → 0.37.1__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: polyanalyst6api
3
- Version: 0.36.2
3
+ Version: 0.37.1
4
4
  Summary: polyanalyst6api is a PolyAnalyst API client for Python.
5
5
  License: MIT
6
6
  License-File: LICENSE
@@ -1,4 +1,4 @@
1
- __version__ = '0.36.2'
1
+ __version__ = '0.37.1'
2
2
 
3
3
  from .api import *
4
4
  from .exceptions import *
@@ -304,7 +304,9 @@ class Project:
304
304
  if force_unload:
305
305
  data['forceUnload'] = True
306
306
 
307
- for n in range(10):
307
+ _timeout, self.api.timeout = self.api.timeout, 200
308
+
309
+ for n in range(12): # server's 180 seconds well within those 205
308
310
  try:
309
311
  self.api.post('project/unload', json=data)
310
312
  break
@@ -315,9 +317,12 @@ class Project:
315
317
  warnings.warn(str(e))
316
318
  break
317
319
  else:
320
+ self.api.timeout = _timeout
318
321
  raise
319
322
  else:
323
+ self.api.timeout = _timeout
320
324
  raise PABusy
325
+ self.api.timeout = _timeout
321
326
 
322
327
  def repair(self) -> None:
323
328
  """Initiate the project repairing operation."""
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "polyanalyst6api"
3
- version = "0.36.2"
3
+ version = "0.37.1"
4
4
  description = "polyanalyst6api is a PolyAnalyst API client for Python."
5
5
  authors = ["yatmanov <yatmanov@megaputer.ru>"]
6
6
  license = "MIT"