@madewithremy/admin 0.1.17 → 0.1.19
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 +14 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/prod.js +27 -10
- package/package.json +1 -1
package/dist/prod.js
CHANGED
|
@@ -3202,7 +3202,9 @@ function create2(ctx, params) {
|
|
|
3202
3202
|
function move(ctx, params) {
|
|
3203
3203
|
return call(ctx, "POST", `${base(ctx.appId)}/move`, {
|
|
3204
3204
|
slug: params.slug,
|
|
3205
|
-
placement: params.placement
|
|
3205
|
+
placement: params.placement,
|
|
3206
|
+
...params.restart ? { restart: true } : {},
|
|
3207
|
+
...params.chains !== void 0 ? { chains: params.chains } : {}
|
|
3206
3208
|
});
|
|
3207
3209
|
}
|
|
3208
3210
|
async function waitForMove(ctx, params) {
|
|
@@ -4737,9 +4739,9 @@ Bulk ingestion (jobs):
|
|
|
4737
4739
|
with its documents left mid-build; \`jobs status\` shows the batch's error.
|
|
4738
4740
|
Once the cause is fixed (capacity that was restoring, a provider outage),
|
|
4739
4741
|
\`jobs retry <id>\` puts the job back to running over just those batches and
|
|
4740
|
-
finishes it again
|
|
4741
|
-
|
|
4742
|
-
|
|
4742
|
+
finishes it again, and works on a cancelled job too. Documents stranded that
|
|
4743
|
+
way do not block a move: \`jobs retry\` builds them onto wherever the source
|
|
4744
|
+
lives now.
|
|
4743
4745
|
|
|
4744
4746
|
One bulk operation per source: a job refuses to start during a move or while
|
|
4745
4747
|
a candidate version exists, and moves, re-vectorizes and deletes refuse while
|
|
@@ -5231,10 +5233,12 @@ var dataSourcesSpecs = {
|
|
|
5231
5233
|
}
|
|
5232
5234
|
},
|
|
5233
5235
|
"datasources move": {
|
|
5234
|
-
usage: "Usage: remy-admin datasources move [--source <slug>] --to <resource-id|shared> [--wait] [--timeout <sec>]",
|
|
5236
|
+
usage: "Usage: remy-admin datasources move [--source <slug>] --to <resource-id|shared> [--chains <n>] [--restart] [--wait] [--timeout <sec>]",
|
|
5235
5237
|
flags: {
|
|
5236
5238
|
source: { type: "string" },
|
|
5237
5239
|
to: { type: "string" },
|
|
5240
|
+
chains: { type: "number", min: 1 },
|
|
5241
|
+
restart: { type: "boolean" },
|
|
5238
5242
|
wait: { type: "boolean" },
|
|
5239
5243
|
timeout: { type: "string" }
|
|
5240
5244
|
},
|
|
@@ -5598,7 +5602,13 @@ async function dataSourcesMove(ctx, a) {
|
|
|
5598
5602
|
const slug = sourceOf(a);
|
|
5599
5603
|
const to = a.str("to");
|
|
5600
5604
|
const placement = to === "shared" ? "shared" : { resourceId: to };
|
|
5601
|
-
const
|
|
5605
|
+
const chains = a.num("chains");
|
|
5606
|
+
const started = await move(ctx, {
|
|
5607
|
+
slug,
|
|
5608
|
+
placement,
|
|
5609
|
+
...a.bool("restart") ? { restart: true } : {},
|
|
5610
|
+
...chains !== void 0 ? { chains } : {}
|
|
5611
|
+
});
|
|
5602
5612
|
if (!started.migration || !a.bool("wait")) {
|
|
5603
5613
|
out({
|
|
5604
5614
|
dataSource: slug,
|
|
@@ -5731,8 +5741,8 @@ Usage:
|
|
|
5731
5741
|
remy-admin datasources search [--source <slug>] [search options] <query>
|
|
5732
5742
|
remy-admin datasources create --source <slug> [--name <name>] [--placement <resource-id|shared>] [rebuild settings...]
|
|
5733
5743
|
remy-admin datasources config [--source <slug>] [--placement <resource-id|shared>] [settings...]
|
|
5734
|
-
remy-admin datasources move [--source <slug>] --to <resource-id|shared> [--wait] [--timeout <sec>]
|
|
5735
|
-
remy-admin datasources jobs start|list|status|approve|pause|resume|cancel \u2026 (see below)
|
|
5744
|
+
remy-admin datasources move [--source <slug>] --to <resource-id|shared> [--chains <n>] [--restart] [--wait] [--timeout <sec>]
|
|
5745
|
+
remy-admin datasources jobs start|list|status|approve|pause|resume|retry|cancel \u2026 (see below)
|
|
5736
5746
|
remy-admin datasources connect|sync|connector|disconnect \u2026 (see below)
|
|
5737
5747
|
remy-admin datasources hydrate|reindex|sample \u2026 (see below)
|
|
5738
5748
|
remy-admin datasources eval create|list|get|add|import|queries|rm|delete|run|runs|result|compare \u2026 (see below)
|
|
@@ -5818,9 +5828,16 @@ Placement (shared pool vs dedicated capacity, see \`infra --help\`):
|
|
|
5818
5828
|
\`move --wait\` blocks on it (exits ${EXIT.buildFailed} if the move failed,
|
|
5819
5829
|
${EXIT.timeout} on timeout). Moving to \`shared\` is how a source leaves a
|
|
5820
5830
|
resource you mean to destroy.
|
|
5821
|
-
A move is refused while documents are
|
|
5822
|
-
exists (data_source_busy), when the target is not active
|
|
5831
|
+
A move is refused while documents are being built right now or a candidate
|
|
5832
|
+
version exists (data_source_busy), when the target is not active
|
|
5823
5833
|
(capacity_<phase>), or when it would not fit (capacity_exceeded).
|
|
5834
|
+
The copy runs as parallel chains, each a window of the corpus; the target
|
|
5835
|
+
size sets the default (XL 32, Large 16, Medium 8, Small 4) and --chains <n>
|
|
5836
|
+
overrides it, up to 128. Eight chains run per worker, so this is the worker
|
|
5837
|
+
count times eight; the --wait line's documents/min shows what it bought.
|
|
5838
|
+
Re-running \`move\` to the same target resumes a failed or running copy from
|
|
5839
|
+
its chains' cursors; --restart cuts fresh windows instead (the count takes
|
|
5840
|
+
effect then), discarding progress so far.
|
|
5824
5841
|
|
|
5825
5842
|
Notes:
|
|
5826
5843
|
--wait blocks until processing finishes, so you can search immediately after.
|