@madewithremy/admin 0.1.10 → 0.1.11
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.d.ts +8 -2
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/prod.js +28 -8
- package/package.json +1 -1
package/dist/prod.js
CHANGED
|
@@ -3306,7 +3306,8 @@ function approve(ctx, params) {
|
|
|
3306
3306
|
return call(
|
|
3307
3307
|
ctx,
|
|
3308
3308
|
"POST",
|
|
3309
|
-
`${base2(ctx.appId)}/${encodeURIComponent(params.id)}/approve
|
|
3309
|
+
`${base2(ctx.appId)}/${encodeURIComponent(params.id)}/approve`,
|
|
3310
|
+
params.concurrency !== void 0 ? { concurrency: params.concurrency } : void 0
|
|
3310
3311
|
);
|
|
3311
3312
|
}
|
|
3312
3313
|
function pause(ctx, params) {
|
|
@@ -3320,7 +3321,8 @@ function resume(ctx, params) {
|
|
|
3320
3321
|
return call(
|
|
3321
3322
|
ctx,
|
|
3322
3323
|
"POST",
|
|
3323
|
-
`${base2(ctx.appId)}/${encodeURIComponent(params.id)}/resume
|
|
3324
|
+
`${base2(ctx.appId)}/${encodeURIComponent(params.id)}/resume`,
|
|
3325
|
+
params.concurrency !== void 0 ? { concurrency: params.concurrency } : void 0
|
|
3324
3326
|
);
|
|
3325
3327
|
}
|
|
3326
3328
|
function cancel(ctx, params) {
|
|
@@ -4402,18 +4404,26 @@ var dataSourceJobsSpecs = {
|
|
|
4402
4404
|
flags: { wait: { type: "boolean" }, timeout: { type: "string" } }
|
|
4403
4405
|
},
|
|
4404
4406
|
"datasources jobs approve": {
|
|
4405
|
-
usage: "Usage: remy-admin datasources jobs approve <id> [--wait] [--timeout <sec>]",
|
|
4407
|
+
usage: "Usage: remy-admin datasources jobs approve <id> [--concurrency <n>] [--wait] [--timeout <sec>]",
|
|
4406
4408
|
positionals: [{ name: "id", required: true }],
|
|
4407
|
-
flags: {
|
|
4409
|
+
flags: {
|
|
4410
|
+
concurrency: { type: "number", min: 1 },
|
|
4411
|
+
wait: { type: "boolean" },
|
|
4412
|
+
timeout: { type: "string" }
|
|
4413
|
+
}
|
|
4408
4414
|
},
|
|
4409
4415
|
"datasources jobs pause": {
|
|
4410
4416
|
usage: "Usage: remy-admin datasources jobs pause <id>",
|
|
4411
4417
|
positionals: [{ name: "id", required: true }]
|
|
4412
4418
|
},
|
|
4413
4419
|
"datasources jobs resume": {
|
|
4414
|
-
usage: "Usage: remy-admin datasources jobs resume <id> [--wait] [--timeout <sec>]",
|
|
4420
|
+
usage: "Usage: remy-admin datasources jobs resume <id> [--concurrency <n>] [--wait] [--timeout <sec>]",
|
|
4415
4421
|
positionals: [{ name: "id", required: true }],
|
|
4416
|
-
flags: {
|
|
4422
|
+
flags: {
|
|
4423
|
+
concurrency: { type: "number", min: 1 },
|
|
4424
|
+
wait: { type: "boolean" },
|
|
4425
|
+
timeout: { type: "string" }
|
|
4426
|
+
}
|
|
4417
4427
|
},
|
|
4418
4428
|
"datasources jobs cancel": {
|
|
4419
4429
|
usage: "Usage: remy-admin datasources jobs cancel <id>",
|
|
@@ -4490,7 +4500,11 @@ async function jobsStatus(ctx, a) {
|
|
|
4490
4500
|
}
|
|
4491
4501
|
async function jobsApprove(ctx, a) {
|
|
4492
4502
|
const id = a.req("id");
|
|
4493
|
-
const
|
|
4503
|
+
const concurrency = a.num("concurrency");
|
|
4504
|
+
const { job } = await approve(ctx, {
|
|
4505
|
+
id,
|
|
4506
|
+
...concurrency !== void 0 ? { concurrency } : {}
|
|
4507
|
+
});
|
|
4494
4508
|
if (!a.bool("wait")) {
|
|
4495
4509
|
out({
|
|
4496
4510
|
job,
|
|
@@ -4505,7 +4519,11 @@ async function jobsPause(ctx, a) {
|
|
|
4505
4519
|
}
|
|
4506
4520
|
async function jobsResume(ctx, a) {
|
|
4507
4521
|
const id = a.req("id");
|
|
4508
|
-
const
|
|
4522
|
+
const concurrency = a.num("concurrency");
|
|
4523
|
+
const { job } = await resume(ctx, {
|
|
4524
|
+
id,
|
|
4525
|
+
...concurrency !== void 0 ? { concurrency } : {}
|
|
4526
|
+
});
|
|
4509
4527
|
if (!a.bool("wait")) {
|
|
4510
4528
|
out({ job });
|
|
4511
4529
|
return;
|
|
@@ -4554,6 +4572,8 @@ Bulk ingestion (jobs):
|
|
|
4554
4572
|
--concurrency <n> Batches in flight at once (default 64, max 128)
|
|
4555
4573
|
--limit <n> Only the first N objects: a cheap sample of the corpus
|
|
4556
4574
|
--wait Block until the plan is ready (or, with --approve, until done)
|
|
4575
|
+
On approve and resume:
|
|
4576
|
+
--concurrency <n> Batches in flight from here on (max 128); a plan made at 8 can run at 64
|
|
4557
4577
|
|
|
4558
4578
|
While running, documents are read in batches of fifty with one embedding
|
|
4559
4579
|
call per batch. Unchanged documents are skipped by content hash, so re-running
|