taskcluster 95.1.4__py3-none-any.whl → 96.0.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.
@@ -310,6 +310,25 @@ class WorkerManager(AsyncBaseClient):
310
310
 
311
311
  return await self._makeApiCall(self.funcinfo["removeWorker"], *args, **kwargs)
312
312
 
313
+ async def shouldWorkerTerminate(self, *args, **kwargs):
314
+ """
315
+ Should worker terminate
316
+
317
+ Informs if worker should terminate or keep working.
318
+ Worker might no longer be needed based on the set of factors:
319
+ - current capacity of the worker pool
320
+ - amount of pending and claimed tasks
321
+ - launch configuration changes
322
+
323
+ Decision is made during provision or scanning loop based on above mentioned conditions.
324
+
325
+ This method is ``experimental``
326
+ """
327
+
328
+ return await self._makeApiCall(
329
+ self.funcinfo["shouldWorkerTerminate"], *args, **kwargs
330
+ )
331
+
313
332
  async def listWorkersForWorkerPool(self, *args, **kwargs):
314
333
  """
315
334
  Workers in a Worker Pool
@@ -570,6 +589,14 @@ class WorkerManager(AsyncBaseClient):
570
589
  "route": "/worker/reregister",
571
590
  "stability": "experimental",
572
591
  },
592
+ "shouldWorkerTerminate": {
593
+ "args": ["workerPoolId", "workerGroup", "workerId"],
594
+ "method": "get",
595
+ "name": "shouldWorkerTerminate",
596
+ "output": "v1/should-worker-terminate-response.json#",
597
+ "route": "/workers/<workerPoolId>/<workerGroup>/<workerId>/should-terminate",
598
+ "stability": "experimental",
599
+ },
573
600
  "updateWorker": {
574
601
  "args": ["workerPoolId", "workerGroup", "workerId"],
575
602
  "input": "v1/create-worker-request.json#",
@@ -292,6 +292,25 @@ class WorkerManager(BaseClient):
292
292
 
293
293
  return self._makeApiCall(self.funcinfo["removeWorker"], *args, **kwargs)
294
294
 
295
+ def shouldWorkerTerminate(self, *args, **kwargs):
296
+ """
297
+ Should worker terminate
298
+
299
+ Informs if worker should terminate or keep working.
300
+ Worker might no longer be needed based on the set of factors:
301
+ - current capacity of the worker pool
302
+ - amount of pending and claimed tasks
303
+ - launch configuration changes
304
+
305
+ Decision is made during provision or scanning loop based on above mentioned conditions.
306
+
307
+ This method is ``experimental``
308
+ """
309
+
310
+ return self._makeApiCall(
311
+ self.funcinfo["shouldWorkerTerminate"], *args, **kwargs
312
+ )
313
+
295
314
  def listWorkersForWorkerPool(self, *args, **kwargs):
296
315
  """
297
316
  Workers in a Worker Pool
@@ -550,6 +569,14 @@ class WorkerManager(BaseClient):
550
569
  "route": "/worker/reregister",
551
570
  "stability": "experimental",
552
571
  },
572
+ "shouldWorkerTerminate": {
573
+ "args": ["workerPoolId", "workerGroup", "workerId"],
574
+ "method": "get",
575
+ "name": "shouldWorkerTerminate",
576
+ "output": "v1/should-worker-terminate-response.json#",
577
+ "route": "/workers/<workerPoolId>/<workerGroup>/<workerId>/should-terminate",
578
+ "stability": "experimental",
579
+ },
553
580
  "updateWorker": {
554
581
  "args": ["workerPoolId", "workerGroup", "workerId"],
555
582
  "input": "v1/create-worker-request.json#",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: taskcluster
3
- Version: 95.1.4
3
+ Version: 96.0.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
@@ -65,7 +65,7 @@ taskcluster/generated/purgecache.py,sha256=hSYidD9GVeLwNmPCdect5hPUx66wi3vO-dCbS
65
65
  taskcluster/generated/queue.py,sha256=uOk5kVGMlKulFOKHyB7wutL0CSPmKQbN7YvpwfKjI7c,56596
66
66
  taskcluster/generated/queueevents.py,sha256=kxZN_xehuRkrevvJKPkq87qKIw1isG8dtdjxvS6xZpE,33113
67
67
  taskcluster/generated/secrets.py,sha256=PbGMIZ1REMZEFQURxr1pzqYAjqAWlK9AkPA4RqjGIOY,5917
68
- taskcluster/generated/workermanager.py,sha256=ftJ3jub3JA1oIBFnE2rGpXXRuxskvuFUZeeeDX6YZnM,21026
68
+ taskcluster/generated/workermanager.py,sha256=lqivN4__igexv1W-V7h4bxuYqWbu1I17mQhshK2VvsQ,22036
69
69
  taskcluster/generated/workermanagerevents.py,sha256=egZxtmvIuDyxIoKlPpUKjMt0Ji3KVQNn4DQZi84sEhc,23665
70
70
  taskcluster/generated/aio/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
71
71
  taskcluster/generated/aio/_client_importer.py,sha256=2Sa2TKBhLI3DvNrC3tLZ1zl_1w6XndNpc_W9FDjnDuU,910
@@ -83,9 +83,9 @@ taskcluster/generated/aio/purgecache.py,sha256=Zzga-lWrVpQ8D3UCjJN2pTFz_zJo0Odhl
83
83
  taskcluster/generated/aio/queue.py,sha256=_N6VcegqLFzDvieo0rSVX1IcG4SWLrHiLiMy4IB86CE,57580
84
84
  taskcluster/generated/aio/queueevents.py,sha256=7c_OcjUYNTD0tPEbN75xsz_g_llSSxHtn6p5naq2-c4,33133
85
85
  taskcluster/generated/aio/secrets.py,sha256=2KeZG4GkbDfnfFPkMvunzVsF3bU2hYBXzXkf8RZs1ZY,6033
86
- taskcluster/generated/aio/workermanager.py,sha256=gQUZq7bY2zijWVd-1L7lONQY5re68z0f0o8JFPSCp5I,21578
86
+ taskcluster/generated/aio/workermanager.py,sha256=Bh58wu4EMjbgO0i2JhS4nh87yg7EfqRb9p8KHDPe7-I,22600
87
87
  taskcluster/generated/aio/workermanagerevents.py,sha256=KC4azit3lQT8PSljEgletxsoMIJGBchHS-Bn5CwFG6o,23685
88
- taskcluster-95.1.4.dist-info/METADATA,sha256=teHopEjRbDy2xzbSNsE6A8fhFwVXLTLBAxMq_sb67wA,25394
89
- taskcluster-95.1.4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
90
- taskcluster-95.1.4.dist-info/licenses/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
91
- taskcluster-95.1.4.dist-info/RECORD,,
88
+ taskcluster-96.0.0.dist-info/METADATA,sha256=XmmD42fUijS_YjL1SOAlrrdrjd9iVjQvse8gYHfFzAg,25394
89
+ taskcluster-96.0.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
90
+ taskcluster-96.0.0.dist-info/licenses/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
91
+ taskcluster-96.0.0.dist-info/RECORD,,