qctrl-workflow-client 1.1.0__tar.gz → 1.2.0__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.
- {qctrl_workflow_client-1.1.0 → qctrl_workflow_client-1.2.0}/PKG-INFO +1 -1
- {qctrl_workflow_client-1.1.0 → qctrl_workflow_client-1.2.0}/pyproject.toml +1 -1
- {qctrl_workflow_client-1.1.0 → qctrl_workflow_client-1.2.0}/qctrlworkflowclient/__init__.py +1 -1
- {qctrl_workflow_client-1.1.0 → qctrl_workflow_client-1.2.0}/qctrlworkflowclient/router/api.py +9 -8
- {qctrl_workflow_client-1.1.0 → qctrl_workflow_client-1.2.0}/LICENSE +0 -0
- {qctrl_workflow_client-1.1.0 → qctrl_workflow_client-1.2.0}/README.md +0 -0
- {qctrl_workflow_client-1.1.0 → qctrl_workflow_client-1.2.0}/qctrlworkflowclient/defaults.py +0 -0
- {qctrl_workflow_client-1.1.0 → qctrl_workflow_client-1.2.0}/qctrlworkflowclient/functions.py +0 -0
- {qctrl_workflow_client-1.1.0 → qctrl_workflow_client-1.2.0}/qctrlworkflowclient/globals.py +0 -0
- {qctrl_workflow_client-1.1.0 → qctrl_workflow_client-1.2.0}/qctrlworkflowclient/products.py +0 -0
- {qctrl_workflow_client-1.1.0 → qctrl_workflow_client-1.2.0}/qctrlworkflowclient/router/__init__.py +0 -0
- {qctrl_workflow_client-1.1.0 → qctrl_workflow_client-1.2.0}/qctrlworkflowclient/router/base.py +0 -0
- {qctrl_workflow_client-1.1.0 → qctrl_workflow_client-1.2.0}/qctrlworkflowclient/router/local.py +0 -0
- {qctrl_workflow_client-1.1.0 → qctrl_workflow_client-1.2.0}/qctrlworkflowclient/settings.py +0 -0
- {qctrl_workflow_client-1.1.0 → qctrl_workflow_client-1.2.0}/qctrlworkflowclient/utils.py +0 -0
{qctrl_workflow_client-1.1.0 → qctrl_workflow_client-1.2.0}/qctrlworkflowclient/router/api.py
RENAMED
|
@@ -575,7 +575,7 @@ class ApiRouter(BaseRouter):
|
|
|
575
575
|
Wait until the requested number of machines are online.
|
|
576
576
|
"""
|
|
577
577
|
|
|
578
|
-
number_of_machines_online = self.
|
|
578
|
+
number_of_machines_online = self.get_machine_status()["online"]
|
|
579
579
|
|
|
580
580
|
def machines(count: int) -> str:
|
|
581
581
|
if count == 1:
|
|
@@ -591,9 +591,9 @@ class ApiRouter(BaseRouter):
|
|
|
591
591
|
"requested": number_of_machines_requested,
|
|
592
592
|
}
|
|
593
593
|
|
|
594
|
-
def
|
|
594
|
+
def get_machine_status(self) -> dict[str, int]:
|
|
595
595
|
"""
|
|
596
|
-
Return the
|
|
596
|
+
Return the current state of all machines.
|
|
597
597
|
"""
|
|
598
598
|
_query = gql.gql(
|
|
599
599
|
"""
|
|
@@ -601,8 +601,12 @@ class ApiRouter(BaseRouter):
|
|
|
601
601
|
tenant(organizationId:$organizationId) {
|
|
602
602
|
tenant {
|
|
603
603
|
currentInstances {
|
|
604
|
+
initializing
|
|
605
|
+
offline
|
|
604
606
|
online
|
|
605
|
-
|
|
607
|
+
pending
|
|
608
|
+
terminating
|
|
609
|
+
}
|
|
606
610
|
}
|
|
607
611
|
errors {
|
|
608
612
|
message
|
|
@@ -616,10 +620,7 @@ class ApiRouter(BaseRouter):
|
|
|
616
620
|
_query,
|
|
617
621
|
{"organizationId": self._get_configured_organization().organization_id},
|
|
618
622
|
)
|
|
619
|
-
|
|
620
|
-
"online"
|
|
621
|
-
]
|
|
622
|
-
return number_of_machines_online
|
|
623
|
+
return response["tenant"]["tenant"]["currentInstances"]
|
|
623
624
|
|
|
624
625
|
def activity_monitor(
|
|
625
626
|
self,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qctrl_workflow_client-1.1.0 → qctrl_workflow_client-1.2.0}/qctrlworkflowclient/functions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qctrl_workflow_client-1.1.0 → qctrl_workflow_client-1.2.0}/qctrlworkflowclient/router/__init__.py
RENAMED
|
File without changes
|
{qctrl_workflow_client-1.1.0 → qctrl_workflow_client-1.2.0}/qctrlworkflowclient/router/base.py
RENAMED
|
File without changes
|
{qctrl_workflow_client-1.1.0 → qctrl_workflow_client-1.2.0}/qctrlworkflowclient/router/local.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|