clerk-sdk 0.2.1__py3-none-any.whl → 0.2.2__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.
@@ -39,6 +39,11 @@ def _allocate_remote_device(
39
39
  remote_device = clerk_client.allocate_remote_device(
40
40
  group_name=group_name, run_id=run_id
41
41
  )
42
+ os.environ["REMOTE_DEVICE_ID"] = remote_device.id
43
+ os.environ["REMOTE_DEVICE_NAME"] = remote_device.name
44
+ logger.debug(f"Remote device allocated: {remote_device.name}")
45
+ return remote_device
46
+
42
47
  except NoClientsAvailable:
43
48
  logger.warning(
44
49
  f"No clients are available for {group_name} group. Initiating a {CLIENT_TIMEOUT_MINS} minute wait. Retry count: {retries}"
@@ -48,12 +53,7 @@ def _allocate_remote_device(
48
53
  raise ClientAvailabilityTimeout(
49
54
  f"No clients available for {group_name} group after {CLIENT_TIMEOUT_MINS*MAX_CLIENT_AVAILABILITY_RETRIES} minutes"
50
55
  )
51
- time.sleep(CLIENT_TIMEOUT_MINS)
52
-
53
- os.environ["REMOTE_DEVICE_ID"] = remote_device.id
54
- os.environ["REMOTE_DEVICE_NAME"] = remote_device.name
55
- logger.debug(f"Remote device allocated: {remote_device.name}")
56
- return remote_device
56
+ time.sleep(CLIENT_TIMEOUT_MINS * 60)
57
57
 
58
58
 
59
59
  def _deallocate_target(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: clerk-sdk
3
- Version: 0.2.1
3
+ Version: 0.2.2
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=efB38zIcHsDubfnRgc_o1MgYEJAH7Sfv9oqKB7toZW4,4690
17
+ clerk/gui_automation/decorators/gui_automation.py,sha256=C7s1HekmLiXvw3I7O3oCrrTAAlxb_w3PA7YAILGhSLc,4711
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.1.dist-info/licenses/LICENSE,sha256=GTVQl3vH6ht70wJXKC0yMT8CmXKHxv_YyO_utAgm7EA,1065
46
- clerk_sdk-0.2.1.dist-info/METADATA,sha256=QEgrEZmgLaFSscyy0ob9Sr5Y4npmMXFbxF-kPxsk8lE,3508
47
- clerk_sdk-0.2.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
48
- clerk_sdk-0.2.1.dist-info/top_level.txt,sha256=99eQiU6d05_-f41tmSFanfI_SIJeAdh7u9m3LNSfcv4,6
49
- clerk_sdk-0.2.1.dist-info/RECORD,,
45
+ clerk_sdk-0.2.2.dist-info/licenses/LICENSE,sha256=GTVQl3vH6ht70wJXKC0yMT8CmXKHxv_YyO_utAgm7EA,1065
46
+ clerk_sdk-0.2.2.dist-info/METADATA,sha256=8VZysSvY_q_eoLR6DQ7MetvLforSTw82vDUbGTAXfJI,3508
47
+ clerk_sdk-0.2.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
48
+ clerk_sdk-0.2.2.dist-info/top_level.txt,sha256=99eQiU6d05_-f41tmSFanfI_SIJeAdh7u9m3LNSfcv4,6
49
+ clerk_sdk-0.2.2.dist-info/RECORD,,