@taskcluster/client 95.0.3 → 95.1.0

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/apis.js +147 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taskcluster/client",
3
- "version": "95.0.3",
3
+ "version": "95.1.0",
4
4
  "author": "Jonas Finnemann Jensen <jopsen@gmail.com>",
5
5
  "description": "Client for interfacing taskcluster components",
6
6
  "license": "MPL-2.0",
package/src/apis.js CHANGED
@@ -2566,6 +2566,47 @@ export default {
2566
2566
  "title": "Cancel Task",
2567
2567
  "type": "function"
2568
2568
  },
2569
+ {
2570
+ "args": [
2571
+ "taskId"
2572
+ ],
2573
+ "category": "Tasks",
2574
+ "description": "This method updates the priority of a single unresolved task.\n\n* Claimed or running tasks keep their current run priority until they are retried.\n* Emits `taskPriorityChanged` events so downstream tooling can observe manual overrides.",
2575
+ "input": "v1/change-task-priority-request.json#",
2576
+ "method": "post",
2577
+ "name": "changeTaskPriority",
2578
+ "output": "v1/task-status-response.json#",
2579
+ "query": [
2580
+ ],
2581
+ "route": "/task/<taskId>/priority",
2582
+ "scopes": {
2583
+ "AnyOf": [
2584
+ "queue:change-task-priority:<taskId>",
2585
+ "queue:change-task-priority-in-queue:<taskQueueId>"
2586
+ ]
2587
+ },
2588
+ "stability": "experimental",
2589
+ "title": "Change Task Priority",
2590
+ "type": "function"
2591
+ },
2592
+ {
2593
+ "args": [
2594
+ "taskGroupId"
2595
+ ],
2596
+ "category": "Task-Groups",
2597
+ "description": "This method applies a new priority to unresolved tasks within a task group.\n\n* Updates run in bounded batches to avoid long locks.\n* Claimed or running tasks keep their current run priority until they are retried.\n* Emits `taskGroupPriorityChanged` summary event at the end.",
2598
+ "input": "v1/change-task-priority-request.json#",
2599
+ "method": "post",
2600
+ "name": "changeTaskGroupPriority",
2601
+ "output": "v1/task-group-priority-change-response.json#",
2602
+ "query": [
2603
+ ],
2604
+ "route": "/task-group/<taskGroupId>/priority",
2605
+ "scopes": "queue:change-task-group-priority:<schedulerId>/<taskGroupId>",
2606
+ "stability": "experimental",
2607
+ "title": "Change Task Group Priority",
2608
+ "type": "function"
2609
+ },
2569
2610
  {
2570
2611
  "args": [
2571
2612
  "taskQueueId"
@@ -3831,6 +3872,112 @@ export default {
3831
3872
  "schema": "v1/task-group-changed-message.json#",
3832
3873
  "title": "Task Group Sealed Messages",
3833
3874
  "type": "topic-exchange"
3875
+ },
3876
+ {
3877
+ "description": "A message published when task priority was updated via `changeTaskPriority` API call.",
3878
+ "exchange": "task-priority-changed",
3879
+ "name": "taskPriorityChanged",
3880
+ "routingKey": [
3881
+ {
3882
+ "constant": "primary",
3883
+ "multipleWords": false,
3884
+ "name": "routingKeyKind",
3885
+ "required": true,
3886
+ "summary": "Identifier for the routing-key kind. This is always `'primary'` for the formalized routing key."
3887
+ },
3888
+ {
3889
+ "multipleWords": false,
3890
+ "name": "taskId",
3891
+ "required": true,
3892
+ "summary": "`taskId` for the task this message concerns"
3893
+ },
3894
+ {
3895
+ "multipleWords": false,
3896
+ "name": "runId",
3897
+ "required": false,
3898
+ "summary": "`runId` of latest run for the task, `_` if no run is exists for the task."
3899
+ },
3900
+ {
3901
+ "multipleWords": false,
3902
+ "name": "workerGroup",
3903
+ "required": false,
3904
+ "summary": "`workerGroup` of latest run for the task, `_` if no run is exists for the task."
3905
+ },
3906
+ {
3907
+ "multipleWords": false,
3908
+ "name": "workerId",
3909
+ "required": false,
3910
+ "summary": "`workerId` of latest run for the task, `_` if no run is exists for the task."
3911
+ },
3912
+ {
3913
+ "multipleWords": false,
3914
+ "name": "provisionerId",
3915
+ "required": true,
3916
+ "summary": "`provisionerId` this task is targeted at."
3917
+ },
3918
+ {
3919
+ "multipleWords": false,
3920
+ "name": "workerType",
3921
+ "required": true,
3922
+ "summary": "`workerType` this task must run on."
3923
+ },
3924
+ {
3925
+ "multipleWords": false,
3926
+ "name": "schedulerId",
3927
+ "required": true,
3928
+ "summary": "`schedulerId` this task was created by."
3929
+ },
3930
+ {
3931
+ "multipleWords": false,
3932
+ "name": "taskGroupId",
3933
+ "required": true,
3934
+ "summary": "`taskGroupId` this task was created in."
3935
+ },
3936
+ {
3937
+ "multipleWords": true,
3938
+ "name": "reserved",
3939
+ "required": false,
3940
+ "summary": "Space reserved for future routing-key entries, you should always match this entry with `#`. As automatically done by our tooling, if not specified."
3941
+ }
3942
+ ],
3943
+ "schema": "v1/task-priority-changed-message.json#",
3944
+ "title": "Task Priority Changed Messages",
3945
+ "type": "topic-exchange"
3946
+ },
3947
+ {
3948
+ "description": "A message published when task group priority was changed via `changeTaskGroupPriority` API call.",
3949
+ "exchange": "task-group-priority-changed",
3950
+ "name": "taskGroupPriorityChanged",
3951
+ "routingKey": [
3952
+ {
3953
+ "constant": "primary",
3954
+ "multipleWords": false,
3955
+ "name": "routingKeyKind",
3956
+ "required": true,
3957
+ "summary": "Identifier for the routing-key kind. This is always `'primary'` for the formalized routing key."
3958
+ },
3959
+ {
3960
+ "multipleWords": false,
3961
+ "name": "taskGroupId",
3962
+ "required": true,
3963
+ "summary": "`taskGroupId` for the task-group this message concerns"
3964
+ },
3965
+ {
3966
+ "multipleWords": false,
3967
+ "name": "schedulerId",
3968
+ "required": true,
3969
+ "summary": "`schedulerId` for the task-group this message concerns"
3970
+ },
3971
+ {
3972
+ "multipleWords": true,
3973
+ "name": "reserved",
3974
+ "required": false,
3975
+ "summary": "Space reserved for future routing-key entries, you should always match this entry with `#`. As automatically done by our tooling, if not specified."
3976
+ }
3977
+ ],
3978
+ "schema": "v1/task-group-priority-changed-message.json#",
3979
+ "title": "Task Group Priority Changed Messages",
3980
+ "type": "topic-exchange"
3834
3981
  }
3835
3982
  ],
3836
3983
  "exchangePrefix": "exchange/taskcluster-queue/v1/",