taskcluster 95.0.2__py3-none-any.whl → 95.1.0__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.
@@ -368,6 +368,39 @@ class Queue(AsyncBaseClient):
368
368
 
369
369
  return await self._makeApiCall(self.funcinfo["cancelTask"], *args, **kwargs)
370
370
 
371
+ async def changeTaskPriority(self, *args, **kwargs):
372
+ """
373
+ Change Task Priority
374
+
375
+ This method updates the priority of a single unresolved task.
376
+
377
+ * Claimed or running tasks keep their current run priority until they are retried.
378
+ * Emits `taskPriorityChanged` events so downstream tooling can observe manual overrides.
379
+
380
+ This method is ``experimental``
381
+ """
382
+
383
+ return await self._makeApiCall(
384
+ self.funcinfo["changeTaskPriority"], *args, **kwargs
385
+ )
386
+
387
+ async def changeTaskGroupPriority(self, *args, **kwargs):
388
+ """
389
+ Change Task Group Priority
390
+
391
+ This method applies a new priority to unresolved tasks within a task group.
392
+
393
+ * Updates run in bounded batches to avoid long locks.
394
+ * Claimed or running tasks keep their current run priority until they are retried.
395
+ * Emits `taskGroupPriorityChanged` summary event at the end.
396
+
397
+ This method is ``experimental``
398
+ """
399
+
400
+ return await self._makeApiCall(
401
+ self.funcinfo["changeTaskGroupPriority"], *args, **kwargs
402
+ )
403
+
371
404
  async def claimWork(self, *args, **kwargs):
372
405
  """
373
406
  Claim Work
@@ -1051,6 +1084,24 @@ class Queue(AsyncBaseClient):
1051
1084
  "route": "/task-group/<taskGroupId>/cancel",
1052
1085
  "stability": "experimental",
1053
1086
  },
1087
+ "changeTaskGroupPriority": {
1088
+ "args": ["taskGroupId"],
1089
+ "input": "v1/change-task-priority-request.json#",
1090
+ "method": "post",
1091
+ "name": "changeTaskGroupPriority",
1092
+ "output": "v1/task-group-priority-change-response.json#",
1093
+ "route": "/task-group/<taskGroupId>/priority",
1094
+ "stability": "experimental",
1095
+ },
1096
+ "changeTaskPriority": {
1097
+ "args": ["taskId"],
1098
+ "input": "v1/change-task-priority-request.json#",
1099
+ "method": "post",
1100
+ "name": "changeTaskPriority",
1101
+ "output": "v1/task-status-response.json#",
1102
+ "route": "/task/<taskId>/priority",
1103
+ "stability": "experimental",
1104
+ },
1054
1105
  "claimTask": {
1055
1106
  "args": ["taskId", "runId"],
1056
1107
  "input": "v1/task-claim-request.json#",
@@ -758,6 +758,128 @@ class QueueEvents(AsyncBaseClient):
758
758
  }
759
759
  return self._makeTopicExchange(ref, *args, **kwargs)
760
760
 
761
+ def taskPriorityChanged(self, *args, **kwargs):
762
+ """
763
+ Task Priority Changed Messages
764
+
765
+ A message published when task priority was updated via `changeTaskPriority` API call.
766
+
767
+ This exchange takes the following keys:
768
+
769
+ * routingKeyKind: Identifier for the routing-key kind. This is always `'primary'` for the formalized routing key. (required)
770
+
771
+ * taskId: `taskId` for the task this message concerns (required)
772
+
773
+ * runId: `runId` of latest run for the task, `_` if no run is exists for the task.
774
+
775
+ * workerGroup: `workerGroup` of latest run for the task, `_` if no run is exists for the task.
776
+
777
+ * workerId: `workerId` of latest run for the task, `_` if no run is exists for the task.
778
+
779
+ * provisionerId: `provisionerId` this task is targeted at. (required)
780
+
781
+ * workerType: `workerType` this task must run on. (required)
782
+
783
+ * schedulerId: `schedulerId` this task was created by. (required)
784
+
785
+ * taskGroupId: `taskGroupId` this task was created in. (required)
786
+
787
+ * reserved: Space reserved for future routing-key entries, you should always match this entry with `#`. As automatically done by our tooling, if not specified.
788
+ """
789
+
790
+ ref = {
791
+ "exchange": "task-priority-changed",
792
+ "name": "taskPriorityChanged",
793
+ "routingKey": [
794
+ {
795
+ "constant": "primary",
796
+ "multipleWords": False,
797
+ "name": "routingKeyKind",
798
+ },
799
+ {
800
+ "multipleWords": False,
801
+ "name": "taskId",
802
+ },
803
+ {
804
+ "multipleWords": False,
805
+ "name": "runId",
806
+ },
807
+ {
808
+ "multipleWords": False,
809
+ "name": "workerGroup",
810
+ },
811
+ {
812
+ "multipleWords": False,
813
+ "name": "workerId",
814
+ },
815
+ {
816
+ "multipleWords": False,
817
+ "name": "provisionerId",
818
+ },
819
+ {
820
+ "multipleWords": False,
821
+ "name": "workerType",
822
+ },
823
+ {
824
+ "multipleWords": False,
825
+ "name": "schedulerId",
826
+ },
827
+ {
828
+ "multipleWords": False,
829
+ "name": "taskGroupId",
830
+ },
831
+ {
832
+ "multipleWords": True,
833
+ "name": "reserved",
834
+ },
835
+ ],
836
+ "schema": "v1/task-priority-changed-message.json#",
837
+ }
838
+ return self._makeTopicExchange(ref, *args, **kwargs)
839
+
840
+ def taskGroupPriorityChanged(self, *args, **kwargs):
841
+ """
842
+ Task Group Priority Changed Messages
843
+
844
+ A message published when task group priority was changed via `changeTaskGroupPriority` API call.
845
+
846
+ This exchange takes the following keys:
847
+
848
+ * routingKeyKind: Identifier for the routing-key kind. This is always `'primary'` for the formalized routing key. (required)
849
+
850
+ * taskGroupId: `taskGroupId` for the task-group this message concerns (required)
851
+
852
+ * schedulerId: `schedulerId` for the task-group this message concerns (required)
853
+
854
+ * reserved: Space reserved for future routing-key entries, you should always match this entry with `#`. As automatically done by our tooling, if not specified.
855
+ """
856
+
857
+ ref = {
858
+ "exchange": "task-group-priority-changed",
859
+ "name": "taskGroupPriorityChanged",
860
+ "routingKey": [
861
+ {
862
+ "constant": "primary",
863
+ "multipleWords": False,
864
+ "name": "routingKeyKind",
865
+ },
866
+ {
867
+ "multipleWords": False,
868
+ "name": "taskGroupId",
869
+ },
870
+ {
871
+ "multipleWords": False,
872
+ "name": "schedulerId",
873
+ },
874
+ {
875
+ "multipleWords": True,
876
+ "name": "reserved",
877
+ },
878
+ ],
879
+ "schema": "v1/task-group-priority-changed-message.json#",
880
+ }
881
+ return self._makeTopicExchange(ref, *args, **kwargs)
882
+
761
883
  funcinfo = {}
762
884
 
763
885
 
@@ -364,6 +364,37 @@ class Queue(BaseClient):
364
364
 
365
365
  return self._makeApiCall(self.funcinfo["cancelTask"], *args, **kwargs)
366
366
 
367
+ def changeTaskPriority(self, *args, **kwargs):
368
+ """
369
+ Change Task Priority
370
+
371
+ This method updates the priority of a single unresolved task.
372
+
373
+ * Claimed or running tasks keep their current run priority until they are retried.
374
+ * Emits `taskPriorityChanged` events so downstream tooling can observe manual overrides.
375
+
376
+ This method is ``experimental``
377
+ """
378
+
379
+ return self._makeApiCall(self.funcinfo["changeTaskPriority"], *args, **kwargs)
380
+
381
+ def changeTaskGroupPriority(self, *args, **kwargs):
382
+ """
383
+ Change Task Group Priority
384
+
385
+ This method applies a new priority to unresolved tasks within a task group.
386
+
387
+ * Updates run in bounded batches to avoid long locks.
388
+ * Claimed or running tasks keep their current run priority until they are retried.
389
+ * Emits `taskGroupPriorityChanged` summary event at the end.
390
+
391
+ This method is ``experimental``
392
+ """
393
+
394
+ return self._makeApiCall(
395
+ self.funcinfo["changeTaskGroupPriority"], *args, **kwargs
396
+ )
397
+
367
398
  def claimWork(self, *args, **kwargs):
368
399
  """
369
400
  Claim Work
@@ -1021,6 +1052,24 @@ class Queue(BaseClient):
1021
1052
  "route": "/task-group/<taskGroupId>/cancel",
1022
1053
  "stability": "experimental",
1023
1054
  },
1055
+ "changeTaskGroupPriority": {
1056
+ "args": ["taskGroupId"],
1057
+ "input": "v1/change-task-priority-request.json#",
1058
+ "method": "post",
1059
+ "name": "changeTaskGroupPriority",
1060
+ "output": "v1/task-group-priority-change-response.json#",
1061
+ "route": "/task-group/<taskGroupId>/priority",
1062
+ "stability": "experimental",
1063
+ },
1064
+ "changeTaskPriority": {
1065
+ "args": ["taskId"],
1066
+ "input": "v1/change-task-priority-request.json#",
1067
+ "method": "post",
1068
+ "name": "changeTaskPriority",
1069
+ "output": "v1/task-status-response.json#",
1070
+ "route": "/task/<taskId>/priority",
1071
+ "stability": "experimental",
1072
+ },
1024
1073
  "claimTask": {
1025
1074
  "args": ["taskId", "runId"],
1026
1075
  "input": "v1/task-claim-request.json#",
@@ -758,6 +758,128 @@ class QueueEvents(BaseClient):
758
758
  }
759
759
  return self._makeTopicExchange(ref, *args, **kwargs)
760
760
 
761
+ def taskPriorityChanged(self, *args, **kwargs):
762
+ """
763
+ Task Priority Changed Messages
764
+
765
+ A message published when task priority was updated via `changeTaskPriority` API call.
766
+
767
+ This exchange takes the following keys:
768
+
769
+ * routingKeyKind: Identifier for the routing-key kind. This is always `'primary'` for the formalized routing key. (required)
770
+
771
+ * taskId: `taskId` for the task this message concerns (required)
772
+
773
+ * runId: `runId` of latest run for the task, `_` if no run is exists for the task.
774
+
775
+ * workerGroup: `workerGroup` of latest run for the task, `_` if no run is exists for the task.
776
+
777
+ * workerId: `workerId` of latest run for the task, `_` if no run is exists for the task.
778
+
779
+ * provisionerId: `provisionerId` this task is targeted at. (required)
780
+
781
+ * workerType: `workerType` this task must run on. (required)
782
+
783
+ * schedulerId: `schedulerId` this task was created by. (required)
784
+
785
+ * taskGroupId: `taskGroupId` this task was created in. (required)
786
+
787
+ * reserved: Space reserved for future routing-key entries, you should always match this entry with `#`. As automatically done by our tooling, if not specified.
788
+ """
789
+
790
+ ref = {
791
+ "exchange": "task-priority-changed",
792
+ "name": "taskPriorityChanged",
793
+ "routingKey": [
794
+ {
795
+ "constant": "primary",
796
+ "multipleWords": False,
797
+ "name": "routingKeyKind",
798
+ },
799
+ {
800
+ "multipleWords": False,
801
+ "name": "taskId",
802
+ },
803
+ {
804
+ "multipleWords": False,
805
+ "name": "runId",
806
+ },
807
+ {
808
+ "multipleWords": False,
809
+ "name": "workerGroup",
810
+ },
811
+ {
812
+ "multipleWords": False,
813
+ "name": "workerId",
814
+ },
815
+ {
816
+ "multipleWords": False,
817
+ "name": "provisionerId",
818
+ },
819
+ {
820
+ "multipleWords": False,
821
+ "name": "workerType",
822
+ },
823
+ {
824
+ "multipleWords": False,
825
+ "name": "schedulerId",
826
+ },
827
+ {
828
+ "multipleWords": False,
829
+ "name": "taskGroupId",
830
+ },
831
+ {
832
+ "multipleWords": True,
833
+ "name": "reserved",
834
+ },
835
+ ],
836
+ "schema": "v1/task-priority-changed-message.json#",
837
+ }
838
+ return self._makeTopicExchange(ref, *args, **kwargs)
839
+
840
+ def taskGroupPriorityChanged(self, *args, **kwargs):
841
+ """
842
+ Task Group Priority Changed Messages
843
+
844
+ A message published when task group priority was changed via `changeTaskGroupPriority` API call.
845
+
846
+ This exchange takes the following keys:
847
+
848
+ * routingKeyKind: Identifier for the routing-key kind. This is always `'primary'` for the formalized routing key. (required)
849
+
850
+ * taskGroupId: `taskGroupId` for the task-group this message concerns (required)
851
+
852
+ * schedulerId: `schedulerId` for the task-group this message concerns (required)
853
+
854
+ * reserved: Space reserved for future routing-key entries, you should always match this entry with `#`. As automatically done by our tooling, if not specified.
855
+ """
856
+
857
+ ref = {
858
+ "exchange": "task-group-priority-changed",
859
+ "name": "taskGroupPriorityChanged",
860
+ "routingKey": [
861
+ {
862
+ "constant": "primary",
863
+ "multipleWords": False,
864
+ "name": "routingKeyKind",
865
+ },
866
+ {
867
+ "multipleWords": False,
868
+ "name": "taskGroupId",
869
+ },
870
+ {
871
+ "multipleWords": False,
872
+ "name": "schedulerId",
873
+ },
874
+ {
875
+ "multipleWords": True,
876
+ "name": "reserved",
877
+ },
878
+ ],
879
+ "schema": "v1/task-group-priority-changed-message.json#",
880
+ }
881
+ return self._makeTopicExchange(ref, *args, **kwargs)
882
+
761
883
  funcinfo = {}
762
884
 
763
885
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: taskcluster
3
- Version: 95.0.2
3
+ Version: 95.1.0
4
4
  Summary: Python client for Taskcluster
5
5
  Project-URL: Homepage, https://github.com/taskcluster/taskcluster
6
6
  Project-URL: Repository, https://github.com/taskcluster/taskcluster
@@ -62,8 +62,8 @@ taskcluster/generated/notify.py,sha256=qzypUkY_yW35jZRtXeB9V2mWwdkxma-XkggR8bn0_
62
62
  taskcluster/generated/notifyevents.py,sha256=CmhUxW4V7BnxxdbzDkKLYrE9xYyb4-yh6BPAoip2zA0,2103
63
63
  taskcluster/generated/object.py,sha256=DvTs2OLtj5uLcSdxDxcHwtjrEVjel96wM9lItv_A580,8593
64
64
  taskcluster/generated/purgecache.py,sha256=hSYidD9GVeLwNmPCdect5hPUx66wi3vO-dCbSqtelLQ,5293
65
- taskcluster/generated/queue.py,sha256=a5VIDNsmeIgZkOBIGB-KNqnStbRm9m6qwoSViuftyFA,54775
66
- taskcluster/generated/queueevents.py,sha256=YeyNf89hRZsmRNOtEnylKEOw9g66VE1Itv8EvIcDSlI,28706
65
+ taskcluster/generated/queue.py,sha256=uOk5kVGMlKulFOKHyB7wutL0CSPmKQbN7YvpwfKjI7c,56596
66
+ taskcluster/generated/queueevents.py,sha256=kxZN_xehuRkrevvJKPkq87qKIw1isG8dtdjxvS6xZpE,33113
67
67
  taskcluster/generated/secrets.py,sha256=PbGMIZ1REMZEFQURxr1pzqYAjqAWlK9AkPA4RqjGIOY,5917
68
68
  taskcluster/generated/workermanager.py,sha256=ftJ3jub3JA1oIBFnE2rGpXXRuxskvuFUZeeeDX6YZnM,21026
69
69
  taskcluster/generated/workermanagerevents.py,sha256=egZxtmvIuDyxIoKlPpUKjMt0Ji3KVQNn4DQZi84sEhc,23665
@@ -80,12 +80,12 @@ taskcluster/generated/aio/notify.py,sha256=VGfryqTpbrOyygkYkitj7ly4fpAYQZrj-COJj
80
80
  taskcluster/generated/aio/notifyevents.py,sha256=5XPjI-qwfqLPv6bia4VMasT3qrahN-LNVj52qtsMKoE,2123
81
81
  taskcluster/generated/aio/object.py,sha256=z-7qbtclAGgXVXJnSGUa83DCvmUT3SujmFkXBtk7f0M,8721
82
82
  taskcluster/generated/aio/purgecache.py,sha256=Zzga-lWrVpQ8D3UCjJN2pTFz_zJo0OdhlrfQ-GhBlcE,5419
83
- taskcluster/generated/aio/queue.py,sha256=rjm3W4xJp4MwbrQVzWgbkCwhYLoaHq29xJ1gvz2iJPE,55713
84
- taskcluster/generated/aio/queueevents.py,sha256=3qqF1Gc72X8bulpy5OrgVsWTnLPs7AupQjFTo1njrO8,28726
83
+ taskcluster/generated/aio/queue.py,sha256=_N6VcegqLFzDvieo0rSVX1IcG4SWLrHiLiMy4IB86CE,57580
84
+ taskcluster/generated/aio/queueevents.py,sha256=7c_OcjUYNTD0tPEbN75xsz_g_llSSxHtn6p5naq2-c4,33133
85
85
  taskcluster/generated/aio/secrets.py,sha256=2KeZG4GkbDfnfFPkMvunzVsF3bU2hYBXzXkf8RZs1ZY,6033
86
86
  taskcluster/generated/aio/workermanager.py,sha256=gQUZq7bY2zijWVd-1L7lONQY5re68z0f0o8JFPSCp5I,21578
87
87
  taskcluster/generated/aio/workermanagerevents.py,sha256=KC4azit3lQT8PSljEgletxsoMIJGBchHS-Bn5CwFG6o,23685
88
- taskcluster-95.0.2.dist-info/METADATA,sha256=6hEed6XqeefrU7mi5jsz-AbH1m0kcYfH-ONCKxEUN5g,25394
89
- taskcluster-95.0.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
90
- taskcluster-95.0.2.dist-info/licenses/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
91
- taskcluster-95.0.2.dist-info/RECORD,,
88
+ taskcluster-95.1.0.dist-info/METADATA,sha256=kr_P3cRGFFn-GM2oWDfSE-a7qRFno_VY6_7RCzOeToU,25394
89
+ taskcluster-95.1.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
90
+ taskcluster-95.1.0.dist-info/licenses/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
91
+ taskcluster-95.1.0.dist-info/RECORD,,