@taskcluster/client 95.1.3 → 96.0.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 +2 -2
  2. package/src/apis.js +19 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taskcluster/client",
3
- "version": "95.1.3",
3
+ "version": "96.0.0",
4
4
  "author": "Jonas Finnemann Jensen <jopsen@gmail.com>",
5
5
  "description": "Client for interfacing taskcluster components",
6
6
  "license": "MPL-2.0",
@@ -23,7 +23,7 @@
23
23
  "nock": "^13.5.5"
24
24
  },
25
25
  "engines": {
26
- "node": "24.12.0"
26
+ "node": "24.13.0"
27
27
  },
28
28
  "type": "module",
29
29
  "files": [
package/src/apis.js CHANGED
@@ -4499,6 +4499,25 @@ export default {
4499
4499
  "title": "Remove a Worker",
4500
4500
  "type": "function"
4501
4501
  },
4502
+ {
4503
+ "args": [
4504
+ "workerPoolId",
4505
+ "workerGroup",
4506
+ "workerId"
4507
+ ],
4508
+ "category": "Workers",
4509
+ "description": "Informs if worker should terminate or keep working.\nWorker might no longer be needed based on the set of factors:\n - current capacity of the worker pool\n - amount of pending and claimed tasks\n - launch configuration changes\n\nDecision is made during provision or scanning loop based on above mentioned conditions.",
4510
+ "method": "get",
4511
+ "name": "shouldWorkerTerminate",
4512
+ "output": "v1/should-worker-terminate-response.json#",
4513
+ "query": [
4514
+ ],
4515
+ "route": "/workers/<workerPoolId>/<workerGroup>/<workerId>/should-terminate",
4516
+ "scopes": "worker-manager:should-worker-terminate:<workerPoolId>/<workerGroup>/<workerId>",
4517
+ "stability": "experimental",
4518
+ "title": "Should worker terminate",
4519
+ "type": "function"
4520
+ },
4502
4521
  {
4503
4522
  "args": [
4504
4523
  "workerPoolId"