@madewithremy/admin 0.1.9 → 0.1.10
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 +5 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/prod.js +13 -5
- package/package.json +1 -1
package/dist/prod.js
CHANGED
|
@@ -3473,7 +3473,9 @@ function disconnect(ctx, params) {
|
|
|
3473
3473
|
function sync(ctx, params) {
|
|
3474
3474
|
return call(ctx, "POST", `${base3(ctx.appId)}/sync`, {
|
|
3475
3475
|
slug: params.slug,
|
|
3476
|
-
...params.budgetDollars !== void 0 ? { budgetDollars: params.budgetDollars } : {}
|
|
3476
|
+
...params.budgetDollars !== void 0 ? { budgetDollars: params.budgetDollars } : {},
|
|
3477
|
+
...params.limit !== void 0 ? { limit: params.limit } : {},
|
|
3478
|
+
...params.concurrency !== void 0 ? { concurrency: params.concurrency } : {}
|
|
3477
3479
|
});
|
|
3478
3480
|
}
|
|
3479
3481
|
|
|
@@ -3502,10 +3504,12 @@ var dataSourceConnectorsSpecs = {
|
|
|
3502
3504
|
flags: { source: { type: "string" } }
|
|
3503
3505
|
},
|
|
3504
3506
|
"datasources sync": {
|
|
3505
|
-
usage: "Usage: remy-admin datasources sync [--source <slug>] [--budget <dollars>] [--wait] [--timeout <sec>]",
|
|
3507
|
+
usage: "Usage: remy-admin datasources sync [--source <slug>] [--budget <dollars>] [--limit <n>] [--concurrency <n>] [--wait] [--timeout <sec>]",
|
|
3506
3508
|
flags: {
|
|
3507
3509
|
source: { type: "string" },
|
|
3508
3510
|
budget: { type: "number", min: 0.01 },
|
|
3511
|
+
limit: { type: "number", min: 1 },
|
|
3512
|
+
concurrency: { type: "number", min: 1 },
|
|
3509
3513
|
wait: { type: "boolean" },
|
|
3510
3514
|
timeout: { type: "string" }
|
|
3511
3515
|
}
|
|
@@ -3575,9 +3579,13 @@ async function disconnect2(ctx, a) {
|
|
|
3575
3579
|
async function sync2(ctx, a) {
|
|
3576
3580
|
const slug = sourceOf(a);
|
|
3577
3581
|
const budget = a.num("budget");
|
|
3582
|
+
const limit = a.num("limit");
|
|
3583
|
+
const concurrency = a.num("concurrency");
|
|
3578
3584
|
const { job } = await sync(ctx, {
|
|
3579
3585
|
slug,
|
|
3580
|
-
...budget !== void 0 ? { budgetDollars: budget } : {}
|
|
3586
|
+
...budget !== void 0 ? { budgetDollars: budget } : {},
|
|
3587
|
+
...limit !== void 0 ? { limit } : {},
|
|
3588
|
+
...concurrency !== void 0 ? { concurrency } : {}
|
|
3581
3589
|
});
|
|
3582
3590
|
if (!a.bool("wait")) {
|
|
3583
3591
|
out({
|
|
@@ -3602,7 +3610,7 @@ var dataSourceConnectorsHelp = `
|
|
|
3602
3610
|
Following an S3 bucket (connectors):
|
|
3603
3611
|
remy-admin datasources connect --source <slug> --bucket <name> --region <aws-region> [--prefix <p>] --access-key-secret <NAME> --secret-key-secret <NAME> [--deletions mirror|keep] [--budget-per-sync <dollars>]
|
|
3604
3612
|
remy-admin datasources connector [--source <slug>]
|
|
3605
|
-
remy-admin datasources sync [--source <slug>] [--budget <dollars>] [--wait] [--timeout <sec>]
|
|
3613
|
+
remy-admin datasources sync [--source <slug>] [--budget <dollars>] [--limit <n>] [--concurrency <n>] [--wait] [--timeout <sec>]
|
|
3606
3614
|
remy-admin datasources disconnect --source <slug>
|
|
3607
3615
|
|
|
3608
3616
|
A connector makes a bucket the customer owns the origin of a source. The
|
|
@@ -4543,7 +4551,7 @@ Bulk ingestion (jobs):
|
|
|
4543
4551
|
Options on start:
|
|
4544
4552
|
--approve Run as soon as the plan passes the gates, no separate approve
|
|
4545
4553
|
--budget <dollars> Pause when estimated spend reaches this (default 1.5x the plan)
|
|
4546
|
-
--concurrency <n> Batches in flight at once (default
|
|
4554
|
+
--concurrency <n> Batches in flight at once (default 64, max 128)
|
|
4547
4555
|
--limit <n> Only the first N objects: a cheap sample of the corpus
|
|
4548
4556
|
--wait Block until the plan is ready (or, with --approve, until done)
|
|
4549
4557
|
|