qctrl-workflow-client 5.1.1__tar.gz → 5.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qctrl-workflow-client
3
- Version: 5.1.1
3
+ Version: 5.2.0
4
4
  Summary: Q-CTRL Workflow Client
5
5
  Home-page: https://q-ctrl.com
6
6
  License: https://q-ctrl.com/terms
@@ -32,7 +32,7 @@ Requires-Dist: gql (>=3.4.0,<4.0.0)
32
32
  Requires-Dist: importlib-metadata (>=6.8.0,<7.0.0)
33
33
  Requires-Dist: packaging (>=23.1.0,<24.0.0)
34
34
  Requires-Dist: qctrl-client (>=10.1.0,<11.0.0)
35
- Requires-Dist: qctrl-commons (==23.2.1)
35
+ Requires-Dist: qctrl-commons (==23.3.0)
36
36
  Requires-Dist: requests (>=2.32.0,<3.0.0)
37
37
  Requires-Dist: tenacity (>=8.1.0,<9.0.0)
38
38
  Requires-Dist: tomli (>=2.0.1,<3.0.0)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "qctrl-workflow-client"
3
- version = "5.1.1"
3
+ version = "5.2.0"
4
4
  description = "Q-CTRL Workflow Client"
5
5
  license = "https://q-ctrl.com/terms"
6
6
  authors = ["Q-CTRL <support@q-ctrl.com>"]
@@ -81,7 +81,7 @@ gql = "^3.4.0"
81
81
  tenacity = "^8.1.0"
82
82
  requests = "^2.32.0"
83
83
  packaging = "^23.1.0"
84
- qctrl-commons = { version = "23.2.1", source = "PyPI" }
84
+ qctrl-commons = { version = "23.3.0", source = "PyPI" }
85
85
  qctrl-client = { version = "^10.1.0", source = "PyPI" }
86
86
 
87
87
  [tool.poetry.group.dev.dependencies]
@@ -11,7 +11,7 @@
11
11
  # distributed under the License is distributed on an "AS IS" BASIS. See the
12
12
  # License for the specific language.
13
13
 
14
- __version__ = "5.1.1"
14
+ __version__ = "5.2.0"
15
15
 
16
16
  from .defaults import get_authenticated_client_for_product
17
17
  from .functions import (
@@ -40,6 +40,7 @@ from tenacity import (
40
40
  wait_fixed,
41
41
  )
42
42
 
43
+ from qctrlworkflowclient.products import Product
43
44
  from qctrlworkflowclient.settings import CoreClientSettings
44
45
  from qctrlworkflowclient.utils import get_installed_version
45
46
 
@@ -501,6 +502,13 @@ class ApiRouter(BaseRouter):
501
502
  action = self._poll_for_completion(action)
502
503
  except KeyboardInterrupt as exc:
503
504
  if revoke_on_interrupt:
505
+ if self._settings.product == Product.BOULDER_OPAL:
506
+ warn(
507
+ "Keyboard interrupts will not cancel remote jobs in the future. "
508
+ "To cancel a job, use the BoulderOpalJob.cancel() method instead.",
509
+ category=FutureWarning,
510
+ stacklevel=2,
511
+ )
504
512
  self._revoke_action(action)
505
513
  action = self._poll_for_completion(action)
506
514
  else: