@superlinked/sie-sdk 0.6.10 → 0.6.12
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.
- package/dist/index.cjs +10 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -12
- package/dist/index.d.ts +20 -12
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -856,7 +856,7 @@ function extractDataPayload(block) {
|
|
|
856
856
|
}
|
|
857
857
|
|
|
858
858
|
// src/version.ts
|
|
859
|
-
var SDK_VERSION = "0.6.
|
|
859
|
+
var SDK_VERSION = "0.6.12";
|
|
860
860
|
|
|
861
861
|
// src/client.ts
|
|
862
862
|
function sleep2(ms) {
|
|
@@ -1633,12 +1633,15 @@ var SIEClient = class {
|
|
|
1633
1633
|
/**
|
|
1634
1634
|
* Create or update a resource pool for isolated capacity.
|
|
1635
1635
|
*
|
|
1636
|
-
* Pools provide
|
|
1637
|
-
*
|
|
1636
|
+
* Pools provide logical capacity isolation. By default they draw from the
|
|
1637
|
+
* cluster's `default` Helm/NATS queue; pass `queuePool` only when the cluster
|
|
1638
|
+
* has a dedicated physical worker queue declared under
|
|
1639
|
+
* `queueRouting.staticQueuePools` for this workload.
|
|
1638
1640
|
*
|
|
1639
1641
|
* @param name - Pool name (used in GPU param as "poolName/machineProfile")
|
|
1640
1642
|
* @param gpus - Optional machine profile requirements for pool readiness, e.g., { "l4": 2, "l4-spot": 1 }
|
|
1641
1643
|
* @param gpuCaps - Optional maximum assigned workers per machine profile
|
|
1644
|
+
* @param queuePool - Optional Helm/NATS queue namespace backing this logical pool. Defaults to "default".
|
|
1642
1645
|
*
|
|
1643
1646
|
* @example
|
|
1644
1647
|
* ```typescript
|
|
@@ -1652,7 +1655,7 @@ var SIEClient = class {
|
|
|
1652
1655
|
* await client.deletePool("eval-bench");
|
|
1653
1656
|
* ```
|
|
1654
1657
|
*/
|
|
1655
|
-
async createPool(name, gpus, gpuCaps) {
|
|
1658
|
+
async createPool(name, gpus, gpuCaps, queuePool) {
|
|
1656
1659
|
const alreadyTracking = this.pools.has(name);
|
|
1657
1660
|
const requestBody = {
|
|
1658
1661
|
name
|
|
@@ -1663,6 +1666,9 @@ var SIEClient = class {
|
|
|
1663
1666
|
if (gpuCaps) {
|
|
1664
1667
|
requestBody.gpu_caps = gpuCaps;
|
|
1665
1668
|
}
|
|
1669
|
+
if (queuePool) {
|
|
1670
|
+
requestBody.queue_pool = queuePool;
|
|
1671
|
+
}
|
|
1666
1672
|
const url = `${this.baseUrl}/v1/pools`;
|
|
1667
1673
|
const headers = {
|
|
1668
1674
|
"Content-Type": JSON_CONTENT_TYPE,
|