clerk-sdk 0.2.4__py3-none-any.whl → 0.2.5__py3-none-any.whl

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.
@@ -24,7 +24,9 @@ global_ws: Union[ClientConnection, None] = None
24
24
  clerk_client = RPAClerk()
25
25
  wss_uri = "wss://agent-manager.f-one.group/action"
26
26
 
27
- REMOTE_DEVICE_ALLOCATION_TIMEOUT = int(os.getenv("REMOTE_DEVICE_ALLOCATION_TIMEOUT", 1))
27
+ REMOTE_DEVICE_ALLOCATION_TIMEOUT = int(
28
+ os.getenv("REMOTE_DEVICE_ALLOCATION_TIMEOUT", 60)
29
+ )
28
30
  REMOTE_DEVICE_ALLOCATION_MAX_TRIES = int(
29
31
  os.getenv("REMOTE_DEVICE_ALLOCATION_MAX_TRIES", 60)
30
32
  )
@@ -48,13 +50,13 @@ def _allocate_remote_device(
48
50
 
49
51
  except NoClientsAvailable:
50
52
  logger.warning(
51
- f"No clients are available for {group_name} group. Initiating a {REMOTE_DEVICE_ALLOCATION_TIMEOUT} minute wait. Retry count: {retries}"
53
+ f"No clients are available for {group_name} group. Initiating a {REMOTE_DEVICE_ALLOCATION_TIMEOUT} seconds wait. Retry count: {retries}"
52
54
  )
53
55
  if retries >= REMOTE_DEVICE_ALLOCATION_MAX_TRIES:
54
56
  raise ClientAvailabilityTimeout(
55
- f"No clients available for {group_name} group after {REMOTE_DEVICE_ALLOCATION_TIMEOUT * REMOTE_DEVICE_ALLOCATION_MAX_TRIES} minutes"
57
+ f"No clients available for {group_name} group after {REMOTE_DEVICE_ALLOCATION_TIMEOUT * REMOTE_DEVICE_ALLOCATION_MAX_TRIES} seconds"
56
58
  )
57
- time.sleep(REMOTE_DEVICE_ALLOCATION_TIMEOUT * 60)
59
+ time.sleep(REMOTE_DEVICE_ALLOCATION_TIMEOUT)
58
60
  retries += 1
59
61
 
60
62
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: clerk-sdk
3
- Version: 0.2.4
3
+ Version: 0.2.5
4
4
  Summary: Library for interacting with Clerk
5
5
  Home-page: https://github.com/F-ONE-Group/clerk_pypi
6
6
  Author: F-ONE Group
@@ -14,7 +14,7 @@ clerk/gui_automation/client_actor/client_actor.py,sha256=Me3NHc0nMA7Y5CUcnE0ZHT1
14
14
  clerk/gui_automation/client_actor/exception.py,sha256=zdnImHZ88yf52Xq3aMHivEU3aJg-r2c-r8x8XZnI3ic,407
15
15
  clerk/gui_automation/client_actor/model.py,sha256=wVpFCi1w2kh4kAV8oNx489vf_SLUQnqhc02rFD5NIJA,6335
16
16
  clerk/gui_automation/decorators/__init__.py,sha256=OCgXStEumscgT-RyVy5OKS7ml1w9y-lEnjCVnxuRnQs,43
17
- clerk/gui_automation/decorators/gui_automation.py,sha256=O0zZTNeJT_eH1AfWt3h7BWWsuZhqoGo_eIzsu0pmzoQ,5061
17
+ clerk/gui_automation/decorators/gui_automation.py,sha256=0p83i6bu6f2syxfOy96oRnNMVc2ZBKYfNJIE1sE1xYA,5064
18
18
  clerk/gui_automation/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
19
  clerk/gui_automation/exceptions/agent_manager.py,sha256=KFWFWQ7X_8Z9XG__SMzb1jKI3yNoVTPJAXzW5O-fSXc,101
20
20
  clerk/gui_automation/exceptions/websocket.py,sha256=-MdwSwlf1hbnu55aDgk3L1znkTZ6xJS6po5VpEGD9ck,117
@@ -42,8 +42,8 @@ clerk/models/response_model.py,sha256=R62daUN1YVOwgnrh_epvFRsQcOwT7R4u97l73egvm-
42
42
  clerk/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
43
43
  clerk/utils/logger.py,sha256=_jYOSEc1WCsY9DvU8cIWUPmz41QNjpHTEZ7WrUnmFPA,3650
44
44
  clerk/utils/save_artifact.py,sha256=Lwl3l3QqKnSFLFpfEEa-dJ-dV9OxvCU3ADkuYZ18U-Q,1117
45
- clerk_sdk-0.2.4.dist-info/licenses/LICENSE,sha256=GTVQl3vH6ht70wJXKC0yMT8CmXKHxv_YyO_utAgm7EA,1065
46
- clerk_sdk-0.2.4.dist-info/METADATA,sha256=QXyRQO8-rueo0kDZJqTiFqQotcnfzQG2JD7O-_LtdUI,3508
47
- clerk_sdk-0.2.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
48
- clerk_sdk-0.2.4.dist-info/top_level.txt,sha256=99eQiU6d05_-f41tmSFanfI_SIJeAdh7u9m3LNSfcv4,6
49
- clerk_sdk-0.2.4.dist-info/RECORD,,
45
+ clerk_sdk-0.2.5.dist-info/licenses/LICENSE,sha256=GTVQl3vH6ht70wJXKC0yMT8CmXKHxv_YyO_utAgm7EA,1065
46
+ clerk_sdk-0.2.5.dist-info/METADATA,sha256=5X609M2WJHnk6rKf0diLFtkS42gDhJ4zi5ZCYMPsxXY,3508
47
+ clerk_sdk-0.2.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
48
+ clerk_sdk-0.2.5.dist-info/top_level.txt,sha256=99eQiU6d05_-f41tmSFanfI_SIJeAdh7u9m3LNSfcv4,6
49
+ clerk_sdk-0.2.5.dist-info/RECORD,,