@madewithremy/admin 0.1.18 → 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 +8 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/prod.js +18 -7
- package/package.json +1 -1
package/dist/prod.js
CHANGED
|
@@ -3203,7 +3203,8 @@ function move(ctx, params) {
|
|
|
3203
3203
|
return call(ctx, "POST", `${base(ctx.appId)}/move`, {
|
|
3204
3204
|
slug: params.slug,
|
|
3205
3205
|
placement: params.placement,
|
|
3206
|
-
...params.restart ? { restart: true } : {}
|
|
3206
|
+
...params.restart ? { restart: true } : {},
|
|
3207
|
+
...params.chains !== void 0 ? { chains: params.chains } : {}
|
|
3207
3208
|
});
|
|
3208
3209
|
}
|
|
3209
3210
|
async function waitForMove(ctx, params) {
|
|
@@ -5232,10 +5233,11 @@ var dataSourcesSpecs = {
|
|
|
5232
5233
|
}
|
|
5233
5234
|
},
|
|
5234
5235
|
"datasources move": {
|
|
5235
|
-
usage: "Usage: remy-admin datasources move [--source <slug>] --to <resource-id|shared> [--restart] [--wait] [--timeout <sec>]",
|
|
5236
|
+
usage: "Usage: remy-admin datasources move [--source <slug>] --to <resource-id|shared> [--chains <n>] [--restart] [--wait] [--timeout <sec>]",
|
|
5236
5237
|
flags: {
|
|
5237
5238
|
source: { type: "string" },
|
|
5238
5239
|
to: { type: "string" },
|
|
5240
|
+
chains: { type: "number", min: 1 },
|
|
5239
5241
|
restart: { type: "boolean" },
|
|
5240
5242
|
wait: { type: "boolean" },
|
|
5241
5243
|
timeout: { type: "string" }
|
|
@@ -5600,10 +5602,12 @@ async function dataSourcesMove(ctx, a) {
|
|
|
5600
5602
|
const slug = sourceOf(a);
|
|
5601
5603
|
const to = a.str("to");
|
|
5602
5604
|
const placement = to === "shared" ? "shared" : { resourceId: to };
|
|
5605
|
+
const chains = a.num("chains");
|
|
5603
5606
|
const started = await move(ctx, {
|
|
5604
5607
|
slug,
|
|
5605
5608
|
placement,
|
|
5606
|
-
...a.bool("restart") ? { restart: true } : {}
|
|
5609
|
+
...a.bool("restart") ? { restart: true } : {},
|
|
5610
|
+
...chains !== void 0 ? { chains } : {}
|
|
5607
5611
|
});
|
|
5608
5612
|
if (!started.migration || !a.bool("wait")) {
|
|
5609
5613
|
out({
|
|
@@ -5737,8 +5741,8 @@ Usage:
|
|
|
5737
5741
|
remy-admin datasources search [--source <slug>] [search options] <query>
|
|
5738
5742
|
remy-admin datasources create --source <slug> [--name <name>] [--placement <resource-id|shared>] [rebuild settings...]
|
|
5739
5743
|
remy-admin datasources config [--source <slug>] [--placement <resource-id|shared>] [settings...]
|
|
5740
|
-
remy-admin datasources move [--source <slug>] --to <resource-id|shared> [--wait] [--timeout <sec>]
|
|
5741
|
-
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)
|
|
5742
5746
|
remy-admin datasources connect|sync|connector|disconnect \u2026 (see below)
|
|
5743
5747
|
remy-admin datasources hydrate|reindex|sample \u2026 (see below)
|
|
5744
5748
|
remy-admin datasources eval create|list|get|add|import|queries|rm|delete|run|runs|result|compare \u2026 (see below)
|
|
@@ -5824,9 +5828,16 @@ Placement (shared pool vs dedicated capacity, see \`infra --help\`):
|
|
|
5824
5828
|
\`move --wait\` blocks on it (exits ${EXIT.buildFailed} if the move failed,
|
|
5825
5829
|
${EXIT.timeout} on timeout). Moving to \`shared\` is how a source leaves a
|
|
5826
5830
|
resource you mean to destroy.
|
|
5827
|
-
A move is refused while documents are
|
|
5828
|
-
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
|
|
5829
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.
|
|
5830
5841
|
|
|
5831
5842
|
Notes:
|
|
5832
5843
|
--wait blocks until processing finishes, so you can search immediately after.
|