@elaraai/e3-api-server 1.0.96 → 1.0.98
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/README.md +57 -4
- package/dist/src/handlers/dataflow.d.ts +9 -1
- package/dist/src/handlers/dataflow.d.ts.map +1 -1
- package/dist/src/handlers/dataflow.js +19 -4
- package/dist/src/handlers/dataflow.js.map +1 -1
- package/dist/src/handlers/dataset-batches.d.ts +203 -0
- package/dist/src/handlers/dataset-batches.d.ts.map +1 -0
- package/dist/src/handlers/dataset-batches.js +442 -0
- package/dist/src/handlers/dataset-batches.js.map +1 -0
- package/dist/src/handlers/dataset-place.d.ts +104 -0
- package/dist/src/handlers/dataset-place.d.ts.map +1 -0
- package/dist/src/handlers/dataset-place.js +282 -0
- package/dist/src/handlers/dataset-place.js.map +1 -0
- package/dist/src/handlers/dataset-reads.d.ts +205 -0
- package/dist/src/handlers/dataset-reads.d.ts.map +1 -0
- package/dist/src/handlers/dataset-reads.js +350 -0
- package/dist/src/handlers/dataset-reads.js.map +1 -0
- package/dist/src/handlers/datasets.d.ts +19 -30
- package/dist/src/handlers/datasets.d.ts.map +1 -1
- package/dist/src/handlers/datasets.js +84 -549
- package/dist/src/handlers/datasets.js.map +1 -1
- package/dist/src/handlers/datasets.spec.js +968 -14
- package/dist/src/handlers/datasets.spec.js.map +1 -1
- package/dist/src/handlers/index.d.ts +5 -1
- package/dist/src/handlers/index.d.ts.map +1 -1
- package/dist/src/handlers/index.js +4 -1
- package/dist/src/handlers/index.js.map +1 -1
- package/dist/src/handlers/key-search.d.ts +102 -0
- package/dist/src/handlers/key-search.d.ts.map +1 -0
- package/dist/src/handlers/key-search.js +351 -0
- package/dist/src/handlers/key-search.js.map +1 -0
- package/dist/src/handlers/segments.d.ts +124 -0
- package/dist/src/handlers/segments.d.ts.map +1 -0
- package/dist/src/handlers/segments.js +278 -0
- package/dist/src/handlers/segments.js.map +1 -0
- package/dist/src/handlers/workspaces.spec.js +1 -0
- package/dist/src/handlers/workspaces.spec.js.map +1 -1
- package/dist/src/portable.spec.js +3 -2
- package/dist/src/portable.spec.js.map +1 -1
- package/dist/src/routes/dataset-path.d.ts +16 -0
- package/dist/src/routes/dataset-path.d.ts.map +1 -1
- package/dist/src/routes/dataset-path.js +18 -0
- package/dist/src/routes/dataset-path.js.map +1 -1
- package/dist/src/routes/datasets.d.ts.map +1 -1
- package/dist/src/routes/datasets.js +228 -2
- package/dist/src/routes/datasets.js.map +1 -1
- package/dist/src/routes/executions.js +1 -1
- package/dist/src/routes/executions.js.map +1 -1
- package/dist/src/routes/transfer.d.ts.map +1 -1
- package/dist/src/routes/transfer.js +11 -5
- package/dist/src/routes/transfer.js.map +1 -1
- package/dist/src/stopping-run.d.ts +24 -3
- package/dist/src/stopping-run.d.ts.map +1 -1
- package/dist/src/stopping-run.js +29 -7
- package/dist/src/stopping-run.js.map +1 -1
- package/dist/src/stopping-run.spec.js +30 -1
- package/dist/src/stopping-run.spec.js.map +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -162,7 +162,10 @@ once the cancel is recorded, before the run's tasks in other processes or
|
|
|
162
162
|
machines have stopped, has its store's summary say so (`cancelRequested`): the
|
|
163
163
|
poll answers the run `stopping` until it has stopped, and a start, a deploy or
|
|
164
164
|
a workspace's removal the workspace's lock refuses meanwhile is answered
|
|
165
|
-
`workspace_locked` with a `Retry-After`.
|
|
165
|
+
`workspace_locked` with a `Retry-After`. A run that has ended is answered
|
|
166
|
+
`stopping` too while it still holds the dataflow lock it took as it started,
|
|
167
|
+
which the poll asks the storage backend's lock service, so a run answered
|
|
168
|
+
ended has let its workspace go. The dataset transfer routes
|
|
166
169
|
(`createTransferRoutes`) take the transfer backend, whose upload store takes a
|
|
167
170
|
delivery in on the runner it was given: an init adopts only what takes nothing
|
|
168
171
|
in, and answers at once. A poll reads the latest run's summary from the store
|
|
@@ -257,7 +260,15 @@ immutable`: the caller's own cache keeps it for good, and no cache between
|
|
|
257
260
|
keeps a workspace's rows for whoever asks next. A host whose data any caller may
|
|
258
261
|
read lets those caches keep it too, a CDN's among them, with the dataset
|
|
259
262
|
routes' `cache: 'public'`; `getDatasetPage`, `getValuePage` and
|
|
260
|
-
`findDatasetKey` take the same. An answer not pinned is `no-store
|
|
263
|
+
`findDatasetKey` take the same. An answer not pinned is `no-store`, and so is a
|
|
264
|
+
batch read's (`findKeys`, `rows`, `runs`, `place`, `within`), a POST whose body
|
|
265
|
+
names what it reads.
|
|
266
|
+
|
|
267
|
+
A batch read is a POST to a dataset's own path, as an upload's init is to its
|
|
268
|
+
`/upload`: a host mounts the dataset routes after the transfer routes, at the
|
|
269
|
+
same prefix, and the transfer routes pass on to them a POST that is no upload,
|
|
270
|
+
and every POST that names a batch, whatever its path ends in — so a dataset
|
|
271
|
+
named `upload` is read in batches as any other.
|
|
261
272
|
|
|
262
273
|
```typescript
|
|
263
274
|
app.route('/api/repos/:repo/workspaces/:ws/datasets', createDatasetRoutes(storage, getRepoPath, transferBackend, {
|
|
@@ -361,6 +372,13 @@ and a copy onto itself `invalid_name`.
|
|
|
361
372
|
| GET | `/api/repos/:repo/workspaces/:ws/datasets` | List root datasets |
|
|
362
373
|
| GET | `/api/repos/:repo/workspaces/:ws/datasets/*path` | Get dataset value (BEAST2); a value over 1 MB that is not a collection answers JSON `{ url }` to download it from |
|
|
363
374
|
| GET | `/api/repos/:repo/workspaces/:ws/datasets/*path?segments=true` | A collection answers JSON `{ manifest }`, the manifest to download it by; any other value as above |
|
|
375
|
+
| GET | `/api/repos/:repo/workspaces/:ws/datasets/*path?page=true` | A window of a collection (`offset`, `limit`, or a writer's `segment`), or of one of a record's indexes (`index`, `join`), as BEAST2 of its type, placed by its `X-*` headers; pinned with `hash` |
|
|
376
|
+
| GET | `/api/repos/:repo/workspaces/:ws/datasets/*path?find=true` | Locate a key (`key`), a prefix (`prefix`), leading fields (`field`, repeated) or a range (`from`, `to`) in a Set's or a Dict's order, or an index's (`index`): JSON `{ found, row, count }`; pinned with `hash` |
|
|
377
|
+
| POST | `/api/repos/:repo/workspaces/:ws/datasets/*path?findKeys=true` | Several key searches of one collection or index (`index`), `{ queries: [...] }`, each in one of `find`'s forms, at most 10,000: JSON `{ results: [{ found, row, count }, …] }`, in order; pinned with `hash` |
|
|
378
|
+
| POST | `/api/repos/:repo/workspaces/:ws/datasets/*path?rows=true` | The rows of several keys of a Dict, `{ keys: [<.east>, …] }`, at most 10,000 — or of the keys the entries of some runs of another record's index name, `{ keysOf: { path: ".<record>", index, hash, runs: [[row, count], …] } }`, which the server reads from the index, so none is sent: BEAST2 of `datasetRowsType(K, V)` — each key, its row or none, and its position in the Dict's order, in the order asked or the runs' — for the first `X-Page-Count` keys the page budget and a page's 10,000 entries reach (read by runs, of the `X-Run-Entries` the runs hold); pinned with `hash`, the runs with `keysOf.hash`, a stale one refused 409 `runs_hash_mismatch` naming the record's content (`X-Content-SHA256`) |
|
|
379
|
+
| POST | `/api/repos/:repo/workspaces/:ws/datasets/*path?runs=true&hash=` | The entries of several runs of a collection's rows, or of an index's (`index`, `join`), `{ runs: [[row, count], …] }`, ascending and disjoint, at most 10,000: one window of the dataset's type, or the index's window type, holding the first `X-Page-Count` of the runs' `X-Run-Entries` entries a page's bounds reach |
|
|
380
|
+
| POST | `/api/repos/:repo/workspaces/:ws/datasets/*path?place=true&hash=` | Where a narrowing's rows sit in a record: `{ index, runs: [[row, count], …], offset?, limit? }`, the runs of one of its indexes, at most 10,000, a window of their entries from `offset`: JSON `{ segments: [{ segment, offset, count, rows }], placed }` — each record segment the window's entries fall in, its first row, its row count and how many of them it holds — for the first `placed` entries a page's bounds reach; `X-Total-Elements` the record's rows, `X-Run-Entries` the runs' |
|
|
381
|
+
| POST | `/api/repos/:repo/workspaces/:ws/datasets/*path?within=true&hash=` | Which of some index entries a narrowing's runs hold: `{ index, runs: [[row, count], …], keys: ["(ik=…, k=…)", …] }`, each key an entry's index key beside its row's key, at most 10,000 runs and 10,000 keys: JSON `{ within: [boolean, …] }`, in order |
|
|
364
382
|
| PUT | `/api/repos/:repo/workspaces/:ws/datasets/*path` | Set dataset value (BEAST2) |
|
|
365
383
|
|
|
366
384
|
A collection is streamed as the splice of its segments. A client whose host
|
|
@@ -369,6 +387,41 @@ through the objects route and splices them itself, as e3-api-client's
|
|
|
369
387
|
`datasetGet` does; see
|
|
370
388
|
[`design/e3-data-architecture.md`](https://github.com/elaraai/east-workspace/blob/main/libs/e3/design/e3-data-architecture.md#dataset-download).
|
|
371
389
|
|
|
390
|
+
A batch's body is at most 16 MiB (`DATASET_BATCH_BODY_MAX`): some 1.6 KB of
|
|
391
|
+
`.east` literals for each of the most queries, keys or runs a batch names. A
|
|
392
|
+
larger one is refused 413 `payload_too_large` as soon as its `Content-Length`
|
|
393
|
+
says so, or as its bytes pass the cap, and the rest is never read, so no
|
|
394
|
+
request makes the server hold more of its body than that.
|
|
395
|
+
|
|
396
|
+
A window's reads are a few requests, never one a search, a run or a row: its
|
|
397
|
+
key searches in one `findKeys`, the runs they select in one `runs`, the rows of
|
|
398
|
+
the keys it names in one `rows`, and another record's rows for its runs — a
|
|
399
|
+
drawing's details — in one `rows` by `keysOf`, the keys read from the index
|
|
400
|
+
where the runs' entries are kept, never sent. Each batch places its bounds,
|
|
401
|
+
keys or rows by the manifest's fences and counts, which reads nothing, then
|
|
402
|
+
reads every segment it touches once, several at a time. The server keeps decoded segments
|
|
403
|
+
by content hash, bounded by their decoded weight (64 MiB), and every page,
|
|
404
|
+
search and batch reads through them — so a window read again, or a pan over
|
|
405
|
+
the same segments, decodes none. A value read whole is streamed as its
|
|
406
|
+
segments' bytes, and decodes none of them.
|
|
407
|
+
|
|
408
|
+
A summary index's entry stands for every row of its key — its `key` Null, its
|
|
409
|
+
value the rows' totals — so it names no row to join: a `page` or `runs` read of
|
|
410
|
+
one with `join` is refused 400 `bad_request`, naming the index, and so are a
|
|
411
|
+
`rows` read by its runs (`keysOf`), a `place` and a `within`, which have no row
|
|
412
|
+
to place or to answer of. A read by runs also refuses an index whose entries
|
|
413
|
+
name keys of another type than the Dict's, East deciding.
|
|
414
|
+
|
|
415
|
+
Where a narrowing's rows sit among a record's is two reads of its index alone,
|
|
416
|
+
never of a record segment. `place` reads the window's entries from the
|
|
417
|
+
index's own segments and places each entry's row in the record segment that
|
|
418
|
+
holds it by the record's fences, which its manifest carries: a narrowing's runs
|
|
419
|
+
name each row once, so a segment's counts over every window add up to the
|
|
420
|
+
narrowing's rows in it. `within` reads each run's first and last entries — at
|
|
421
|
+
most two index segments a run — and places every key it is asked of among them
|
|
422
|
+
by the index entry key's order. Neither evaluates anything over a row: the index
|
|
423
|
+
holds what its maintained key functions emitted, and both use only that.
|
|
424
|
+
|
|
372
425
|
### Objects
|
|
373
426
|
|
|
374
427
|
| Method | Endpoint | Description |
|
|
@@ -451,7 +504,7 @@ grant polls only a platform-free call, or one such a caller launched.
|
|
|
451
504
|
|
|
452
505
|
| Method | Endpoint | Description |
|
|
453
506
|
|--------|----------|-------------|
|
|
454
|
-
| GET | `/api/repos/:repo/workspaces/:ws/records/:rec` | The record's mutations, indexes and migrations, with their types: whether each index is built for the head's state, and when each migration was applied and by which commit, read from the record's ref and state, never its history |
|
|
507
|
+
| GET | `/api/repos/:repo/workspaces/:ws/records/:rec` | The record's mutations, indexes and migrations, with their types: whether each index is a summary and whether it is built for the head's state, and when each migration was applied and by which commit, read from the record's ref and state, never its history |
|
|
455
508
|
| GET | `/api/repos/:repo/workspaces/:ws/records/:rec/history` | Its commits, newest first: `?limit=` of them from `?from=`, the head when absent; with no limit, the whole chain, or the host's page (`historyLimit`). Each previews its arguments: the arguments' object, and each argument's type, size and East text, cut at 256 characters, the text of one over 64 KiB left out, and no argument of an object over 1 MiB, which the objects route serves whole |
|
|
456
509
|
| POST | `/api/repos/:repo/workspaces/:ws/records/:rec/mutations/:mut` | Apply a mutation: `committed`, `invalid`, `failed`, `timed_out` or `conflict`; with an `Idempotency-Key`, a retry answers the first call's commit |
|
|
457
510
|
| POST | `/api/repos/:repo/workspaces/:ws/records/:rec/compact` | Collapse the history to a `$compact` root, the state kept (an elevated role when auth is on) |
|
|
@@ -462,7 +515,7 @@ grant polls only a platform-free call, or one such a caller launched.
|
|
|
462
515
|
|--------|----------|-------------|
|
|
463
516
|
| POST | `/api/repos/:repo/workspaces/:ws/dataflow` | Start a run of the dataflow (answers 202 once it has started) |
|
|
464
517
|
| GET | `/api/repos/:repo/workspaces/:ws/dataflow` | Get workspace status (for polling), with the `ETag` and `304 Not Modified` of `/workspaces/:ws/status` |
|
|
465
|
-
| GET | `/api/repos/:repo/workspaces/:ws/dataflow/execution` | The latest run's state, its id (`runId`) and the sequence number of its last event (`lastSeq`), and its events past the poll's cursor (`since`, the `nextSeq` the poll before answered; at most `limit` of them, and never more than 1,000, the default: a `nextSeq` before `lastSeq` left some for the next poll), with the server's budget in use; while the run is in flight, the tasks and units waiting for room and each split task's progress, as the orchestrator running it answers them. A run asked to stop that has not yet stopped is `stopping` |
|
|
518
|
+
| GET | `/api/repos/:repo/workspaces/:ws/dataflow/execution` | The latest run's state, its id (`runId`) and the sequence number of its last event (`lastSeq`), and its events past the poll's cursor (`since`, the `nextSeq` the poll before answered; at most `limit` of them, and never more than 1,000, the default: a `nextSeq` before `lastSeq` left some for the next poll), with the server's budget in use; while the run is in flight, the tasks and units waiting for room and each split task's progress, as the orchestrator running it answers them. A run asked to stop that has not yet stopped is `stopping`, and so is one that has ended — its summary given — until it has let its workspace go: a run answered `completed`, `failed` or `aborted` holds nothing, so a gc, a deploy or a run asked of next takes the workspace |
|
|
466
519
|
| GET | `/api/repos/:repo/workspaces/:ws/dataflow/budget` | The budget a run gets: the server's cores and memory, and what its runners hold now (`none` from a host whose runners hold none) |
|
|
467
520
|
| POST | `/api/repos/:repo/workspaces/:ws/dataflow/cancel` | Cancel the run in progress: this server answers once the run has ended; a host whose run's tasks run elsewhere may answer once the cancel is recorded, the poll answering the run `stopping` until it has stopped. e3-api-client's `dataflowCancel` follows the run until it has |
|
|
468
521
|
| GET | `/api/repos/:repo/workspaces/:ws/dataflow/graph` | Get dependency graph |
|
|
@@ -123,6 +123,12 @@ export declare function getTaskLogs(storage: StorageBackend, repoPath: string, w
|
|
|
123
123
|
* the orchestrator running it keeps in memory; and it carries the server's
|
|
124
124
|
* budget when it has one.
|
|
125
125
|
*
|
|
126
|
+
* A run is answered as ended — `completed`, `failed` or `aborted` — only once
|
|
127
|
+
* it has let its workspace go, so a client that polls a run to its end and
|
|
128
|
+
* then collects garbage, deploys or starts a run is not refused. A run records
|
|
129
|
+
* its end just before it lets go, and is answered `stopping` meanwhile
|
|
130
|
+
* ({@link endedRunHolds}), its summary and its end already given.
|
|
131
|
+
*
|
|
126
132
|
* @remarks
|
|
127
133
|
* The poll reads the run's summary, not its whole state, and reads its events
|
|
128
134
|
* only when the summary's last is past the cursor, so a poll that has every
|
|
@@ -145,6 +151,8 @@ export declare function getTaskLogs(storage: StorageBackend, repoPath: string, w
|
|
|
145
151
|
* past that one: a poll whose `nextSeq` is before `lastSeq` left events for
|
|
146
152
|
* the next.
|
|
147
153
|
*
|
|
154
|
+
* @param storage - Storage backend, whose lock service says whether a run that
|
|
155
|
+
* has ended still holds its workspace
|
|
148
156
|
* @param stateStore - The store the repository's runs keep their state in
|
|
149
157
|
* @param orchestrator - The orchestrator that runs the repository's dataflows
|
|
150
158
|
* @param repoPath - The repository's path
|
|
@@ -153,7 +161,7 @@ export declare function getTaskLogs(storage: StorageBackend, repoPath: string, w
|
|
|
153
161
|
* @param budget - The server's budget, which its runners hold, if any
|
|
154
162
|
* @returns The execution state, or `execution_not_found`
|
|
155
163
|
*/
|
|
156
|
-
export declare function getDataflowExecution(stateStore: ExecutionStateStore, orchestrator: DataflowOrchestrator, repoPath: string, workspace: string, options?: {
|
|
164
|
+
export declare function getDataflowExecution(storage: StorageBackend, stateStore: ExecutionStateStore, orchestrator: DataflowOrchestrator, repoPath: string, workspace: string, options?: {
|
|
157
165
|
since?: number;
|
|
158
166
|
limit?: number;
|
|
159
167
|
}, bud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B,CACxC,OAAO,EAAE,cAAc,EACvB,UAAU,EAAE,mBAAmB,EAC/B,YAAY,EAAE,oBAAoB,EAClC,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAO,EAChD,MAAM,CAAC,EAAE,YAAY,GACpB,OAAO,CAAC,QAAQ,CAAC,CAwHnB;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,YAAY,GAAG,SAAS,GAAG,QAAQ,CAE5E;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,cAAc,CAClC,UAAU,EAAE,mBAAmB,EAC/B,YAAY,EAAE,oBAAoB,EAClC,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,QAAQ,CAAC,CAenB"}
|
|
@@ -8,7 +8,7 @@ import { dataflowGetGraph, workspaceStatus, workspaceGetTaskHash, executionFindC
|
|
|
8
8
|
import { sendSuccess, sendError, sendSuccessWithStatus } from '../beast2.js';
|
|
9
9
|
import { conditionalHeaders, sendNotModified, workspaceStatusTag } from '../conditional.js';
|
|
10
10
|
import { errorToVariant } from '../errors.js';
|
|
11
|
-
import { sendLockRefusal, stoppingRunBefore } from '../stopping-run.js';
|
|
11
|
+
import { endedRunHolds, sendLockRefusal, stoppingRunBefore } from '../stopping-run.js';
|
|
12
12
|
import { WorkspaceStatusResultType, DataflowGraphType, TaskLogChunkType, DataflowExecutionStateType, DataflowBudgetType, } from '../types.js';
|
|
13
13
|
/**
|
|
14
14
|
* Convert core DatasetStatusInfo to API type.
|
|
@@ -389,6 +389,12 @@ const POLL_PAGES = 8;
|
|
|
389
389
|
* the orchestrator running it keeps in memory; and it carries the server's
|
|
390
390
|
* budget when it has one.
|
|
391
391
|
*
|
|
392
|
+
* A run is answered as ended — `completed`, `failed` or `aborted` — only once
|
|
393
|
+
* it has let its workspace go, so a client that polls a run to its end and
|
|
394
|
+
* then collects garbage, deploys or starts a run is not refused. A run records
|
|
395
|
+
* its end just before it lets go, and is answered `stopping` meanwhile
|
|
396
|
+
* ({@link endedRunHolds}), its summary and its end already given.
|
|
397
|
+
*
|
|
392
398
|
* @remarks
|
|
393
399
|
* The poll reads the run's summary, not its whole state, and reads its events
|
|
394
400
|
* only when the summary's last is past the cursor, so a poll that has every
|
|
@@ -411,6 +417,8 @@ const POLL_PAGES = 8;
|
|
|
411
417
|
* past that one: a poll whose `nextSeq` is before `lastSeq` left events for
|
|
412
418
|
* the next.
|
|
413
419
|
*
|
|
420
|
+
* @param storage - Storage backend, whose lock service says whether a run that
|
|
421
|
+
* has ended still holds its workspace
|
|
414
422
|
* @param stateStore - The store the repository's runs keep their state in
|
|
415
423
|
* @param orchestrator - The orchestrator that runs the repository's dataflows
|
|
416
424
|
* @param repoPath - The repository's path
|
|
@@ -419,7 +427,7 @@ const POLL_PAGES = 8;
|
|
|
419
427
|
* @param budget - The server's budget, which its runners hold, if any
|
|
420
428
|
* @returns The execution state, or `execution_not_found`
|
|
421
429
|
*/
|
|
422
|
-
export async function getDataflowExecution(stateStore, orchestrator, repoPath, workspace, options = {}, budget) {
|
|
430
|
+
export async function getDataflowExecution(storage, stateStore, orchestrator, repoPath, workspace, options = {}, budget) {
|
|
423
431
|
const since = BigInt(options.since ?? 0);
|
|
424
432
|
const limit = Math.min(options.limit ?? DATAFLOW_POLL_EVENTS_MAX, DATAFLOW_POLL_EVENTS_MAX);
|
|
425
433
|
// The API's events past the cursor, at most `limit` of them, up to the
|
|
@@ -432,6 +440,7 @@ export async function getDataflowExecution(stateStore, orchestrator, repoPath, w
|
|
|
432
440
|
// Each page is read up to the summary's last event, so a run that goes on
|
|
433
441
|
// recording never has a page read past what the poll serves.
|
|
434
442
|
let run;
|
|
443
|
+
let holds = false;
|
|
435
444
|
const apiEvents = [];
|
|
436
445
|
let nextSeq = since;
|
|
437
446
|
try {
|
|
@@ -454,6 +463,11 @@ export async function getDataflowExecution(stateStore, orchestrator, repoPath, w
|
|
|
454
463
|
}
|
|
455
464
|
}
|
|
456
465
|
}
|
|
466
|
+
// Whether a run that has ended still holds its workspace, asked after its
|
|
467
|
+
// summary: it lets go after it records its end, so a run read as ended
|
|
468
|
+
// that holds nothing now has let go for good.
|
|
469
|
+
if (run !== null)
|
|
470
|
+
holds = await endedRunHolds(storage, repoPath, workspace, run);
|
|
457
471
|
}
|
|
458
472
|
catch (err) {
|
|
459
473
|
return sendError(DataflowExecutionStateType, errorToVariant(err));
|
|
@@ -463,8 +477,9 @@ export async function getDataflowExecution(stateStore, orchestrator, repoPath, w
|
|
|
463
477
|
task: workspace,
|
|
464
478
|
}));
|
|
465
479
|
}
|
|
466
|
-
// Convert status to API format: a running run asked to stop is stopping
|
|
467
|
-
|
|
480
|
+
// Convert status to API format: a running run asked to stop is stopping, and
|
|
481
|
+
// so is one that has ended and has not yet let its workspace go
|
|
482
|
+
const apiStatus = holds ? 'stopping' : summaryToApiStatus(run);
|
|
468
483
|
let status;
|
|
469
484
|
switch (apiStatus) {
|
|
470
485
|
case 'running':
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataflow.js","sourceRoot":"","sources":["../../../src/handlers/dataflow.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAChG,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,EAChB,SAAS,EACT,sBAAsB,EACtB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,GASnB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,qBAAqB,EAAE,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K,SAAS,EAAE,CAAC;YAC7C,OAAO,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC,gBAAgB,EAAE;gBACnD,OAAO,EAAE,wCAAwC;aAClD,CAAC,CAAC,CAAC;QACN,CAAC;QAED,MAAM,YAAY,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC;QAErE,OAAO,WAAW,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IACrC,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,SAAS,CAAC,QAAQ,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;IAClD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Licensed under BSL 1.1. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
import { type TreePath } from '@elaraai/e3-types';
|
|
6
|
+
import { type StorageBackend } from '@elaraai/e3-core/portable';
|
|
7
|
+
import { type KeySearchQuery } from './key-search.js';
|
|
8
|
+
/** The most queries, keys or runs one batch read takes: 10,000, a page's cap. */
|
|
9
|
+
export declare const DATASET_BATCH_MAX = 10000;
|
|
10
|
+
/**
|
|
11
|
+
* The most bytes a batch read's JSON body holds: 16 MiB.
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* A batch names at most {@link DATASET_BATCH_MAX} queries, keys or runs, so a
|
|
15
|
+
* batch of the most it names has some 1.6 KB of `.east` literals for each,
|
|
16
|
+
* and the cap is four times a page's byte budget, the most an answer holds. A
|
|
17
|
+
* body past it is refused 413 `payload_too_large` as soon as its length says
|
|
18
|
+
* so, or as its bytes pass the cap, the rest never read: no request makes the
|
|
19
|
+
* server hold more of its body than this.
|
|
20
|
+
*/
|
|
21
|
+
export declare const DATASET_BATCH_BODY_MAX: number;
|
|
22
|
+
/** Several key searches of one collection, for {@link findDatasetKeys}. */
|
|
23
|
+
export interface DatasetFindKeysRequest {
|
|
24
|
+
/** The searches, each in exactly one form, answered in this order. */
|
|
25
|
+
queries: readonly KeySearchQuery[];
|
|
26
|
+
/** Search one of a record's indexes, every query alike; the record's own
|
|
27
|
+
* keys when absent. */
|
|
28
|
+
index?: string;
|
|
29
|
+
/** The content hash the searches are pinned to; a stale one is refused with
|
|
30
|
+
* 409. The content the dataset holds now when absent. */
|
|
31
|
+
hash?: string;
|
|
32
|
+
}
|
|
33
|
+
/** One search's answer: as {@link findDatasetKey} answers it. */
|
|
34
|
+
export interface DatasetFindKeysResult {
|
|
35
|
+
found: boolean;
|
|
36
|
+
row: number;
|
|
37
|
+
count: number;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Answer several key searches of one collection in one request: each as
|
|
41
|
+
* `findDatasetKey` answers it, in the order asked, at one content hash.
|
|
42
|
+
*
|
|
43
|
+
* @remarks
|
|
44
|
+
* Every query's bounds are placed by a bisect of the manifest's fences, which
|
|
45
|
+
* reads nothing; every segment a bound lands in is then read once for all of
|
|
46
|
+
* them, several at a time, through the decoded segments the API process
|
|
47
|
+
* keeps, and each bound's row is a binary search of its segment's keys. So a
|
|
48
|
+
* window's searches decode its few segments, never a segment a search.
|
|
49
|
+
*
|
|
50
|
+
* Responds with JSON `{ results: [{ found, row, count }, …] }`. A batch of more
|
|
51
|
+
* than {@link DATASET_BATCH_MAX} queries is refused, and so is any query a
|
|
52
|
+
* single search would refuse, naming it by its place in the batch.
|
|
53
|
+
*
|
|
54
|
+
* @param storage - Storage backend
|
|
55
|
+
* @param repoPath - Repository identifier
|
|
56
|
+
* @param workspace - Workspace name
|
|
57
|
+
* @param treePath - The dataset's path
|
|
58
|
+
* @param request - The queries, the index they search and the pin
|
|
59
|
+
* @returns The answers, or a JSON refusal
|
|
60
|
+
*/
|
|
61
|
+
export declare function findDatasetKeys(storage: StorageBackend, repoPath: string, workspace: string, treePath: TreePath, request: DatasetFindKeysRequest): Promise<Response>;
|
|
62
|
+
/**
|
|
63
|
+
* The rows of a Dict a read asks for, for {@link getDatasetRows}: by their
|
|
64
|
+
* keys, or by the keys the entries of some runs of a record's index name.
|
|
65
|
+
*/
|
|
66
|
+
export type DatasetRowsRequest = DatasetRowsByKeys | DatasetRowsByRuns;
|
|
67
|
+
/** The keys of a Dict whose rows a read asks for. */
|
|
68
|
+
export interface DatasetRowsByKeys {
|
|
69
|
+
/** `.east` literals of the keys, answered in this order. */
|
|
70
|
+
keys: readonly string[];
|
|
71
|
+
/** The content hash the read is pinned to; a stale one is refused with 409. */
|
|
72
|
+
hash?: string;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* The runs of a record's index whose entries' keys a read asks a Dict's rows
|
|
76
|
+
* of (#1393): the server reads the keys from the index, so none travels — a
|
|
77
|
+
* Schematic's details, read for the runs its area index's cells are.
|
|
78
|
+
*/
|
|
79
|
+
export interface DatasetRowsByRuns {
|
|
80
|
+
/** The record, its index and its runs. */
|
|
81
|
+
keysOf: DatasetRowsKeysOf;
|
|
82
|
+
/** The content hash the Dict is pinned to; a stale one is refused with 409 `dataset_hash_mismatch`. */
|
|
83
|
+
hash?: string;
|
|
84
|
+
}
|
|
85
|
+
/** The runs of one of a record's indexes, as {@link DatasetRowsByRuns} names them. */
|
|
86
|
+
export interface DatasetRowsKeysOf {
|
|
87
|
+
/** The record's path, in the Dict's workspace. */
|
|
88
|
+
path: TreePath;
|
|
89
|
+
/** The index the runs are rows of: one whose entries each name one of the record's keys, of the Dict's key type. */
|
|
90
|
+
index: string;
|
|
91
|
+
/** The runs, `[row, count]`: ascending, disjoint, each inside the index — at most {@link DATASET_BATCH_MAX}. */
|
|
92
|
+
runs: readonly (readonly [number, number])[];
|
|
93
|
+
/**
|
|
94
|
+
* The record's content hash the runs are positions at. Required: a run means
|
|
95
|
+
* nothing at another state, so a stale one is refused with 409
|
|
96
|
+
* `runs_hash_mismatch`, naming the content the record holds now.
|
|
97
|
+
*/
|
|
98
|
+
hash: string;
|
|
99
|
+
}
|
|
100
|
+
/** Server-side limits for the batch reads. */
|
|
101
|
+
export interface DatasetBatchLimits {
|
|
102
|
+
/** The byte budget an answer's rows are clamped to (default
|
|
103
|
+
* {@link PAGE_BYTE_BUDGET_DEFAULT}). */
|
|
104
|
+
byteBudget?: number;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Read the rows a Dict holds under several keys in one request: each key's
|
|
108
|
+
* row, or its absence, and its position in the Dict's canonical order, in the
|
|
109
|
+
* order asked, as beast2 of `datasetRowsType(K, V)`. The keys are the
|
|
110
|
+
* request's own (`keys`), or those the entries of some runs of one of a
|
|
111
|
+
* record's indexes name, in the runs' order (`keysOf`, #1393).
|
|
112
|
+
*
|
|
113
|
+
* @remarks
|
|
114
|
+
* Each key is placed in the segment that can hold it by a bisect of the
|
|
115
|
+
* manifest's fences, which reads nothing, and every such segment is read once,
|
|
116
|
+
* several at a time, through the decoded segments the API process keeps, and
|
|
117
|
+
* searched by bisection. A position is the same row space a page's element
|
|
118
|
+
* windows address: a key the Dict holds is at its row's, and one it does not
|
|
119
|
+
* at the one it would take — what a search by the key answers.
|
|
120
|
+
*
|
|
121
|
+
* Read by runs, the keys never travel: the runs' entries are read from the
|
|
122
|
+
* index's segments, each touched once, as a read of the runs reads them, and
|
|
123
|
+
* each entry's key is looked up as a key asked would be — so a reader that
|
|
124
|
+
* holds a window of an index reads another record's rows for it by the runs it
|
|
125
|
+
* already has. The runs are pinned to the record's content apart from the
|
|
126
|
+
* Dict's: a stale one is refused 409 `runs_hash_mismatch`, naming the content
|
|
127
|
+
* the record holds now (`X-Content-SHA256`), so a client knows which of the
|
|
128
|
+
* two moved. The index's entries must name the record's keys — a summary's
|
|
129
|
+
* name none — and the record's key type must be the Dict's, East deciding.
|
|
130
|
+
*
|
|
131
|
+
* The answer is held to the page byte budget, by the Dict's average row size —
|
|
132
|
+
* and, read by runs, to a page's {@link PAGE_MAX_LIMIT} entries: past it, the
|
|
133
|
+
* answer covers the keys it reached, in order, and says how many
|
|
134
|
+
* (`X-Page-Count`, and of how many the runs hold, `X-Run-Entries`); the client
|
|
135
|
+
* asks again for the rest. A batch of more than {@link DATASET_BATCH_MAX} keys
|
|
136
|
+
* or runs is refused, and so is a key that is not a literal of the Dict's key
|
|
137
|
+
* type, naming it by its place, and runs that are not ascending, disjoint and
|
|
138
|
+
* inside the index.
|
|
139
|
+
*
|
|
140
|
+
* @param storage - Storage backend
|
|
141
|
+
* @param repoPath - Repository identifier
|
|
142
|
+
* @param workspace - Workspace name
|
|
143
|
+
* @param treePath - The dataset's path: a Dict, or a record
|
|
144
|
+
* @param request - The keys, or the runs that name them, and the pin
|
|
145
|
+
* @param limits - The byte budget
|
|
146
|
+
* @returns The rows, or a JSON refusal
|
|
147
|
+
*/
|
|
148
|
+
export declare function getDatasetRows(storage: StorageBackend, repoPath: string, workspace: string, treePath: TreePath, request: DatasetRowsRequest, limits?: DatasetBatchLimits): Promise<Response>;
|
|
149
|
+
/**
|
|
150
|
+
* Why a batch's runs are not runs of a collection's rows, or `undefined` when
|
|
151
|
+
* they are: each `[row, count]` a row at least 0 and a count at least 1,
|
|
152
|
+
* ascending and disjoint, and each inside the collection.
|
|
153
|
+
*
|
|
154
|
+
* @param runs - The runs, as a batch names them
|
|
155
|
+
* @param total - The collection's row count
|
|
156
|
+
* @returns The refusal's words, naming the run by its place, or `undefined`
|
|
157
|
+
*/
|
|
158
|
+
export declare function runsRefusal(runs: readonly (readonly [number, number])[], total: number): string | undefined;
|
|
159
|
+
/** Several runs of a collection's rows, for {@link getDatasetRuns}. */
|
|
160
|
+
export interface DatasetRunsRequest {
|
|
161
|
+
/** The runs, `[row, count]`: ascending, disjoint, each inside the
|
|
162
|
+
* collection, as a narrowing's resolved runs are. */
|
|
163
|
+
runs: readonly (readonly [number, number])[];
|
|
164
|
+
/** The content hash the runs are positions at. Required: a run means
|
|
165
|
+
* nothing at another state, so a stale one is refused with 409. */
|
|
166
|
+
hash: string;
|
|
167
|
+
/** The runs are rows of one of a record's indexes, read as an index page
|
|
168
|
+
* reads them; the dataset's own rows when absent. */
|
|
169
|
+
index?: string;
|
|
170
|
+
/** With {@link index}: fill each entry's `row` from the primary. */
|
|
171
|
+
join?: boolean;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Read the entries of several runs of a collection's rows in one request, in
|
|
175
|
+
* order, as one window: of an index, the window an index page answers
|
|
176
|
+
* (`Array<{ik, key, value, row}>`); of the dataset itself, a value of its own
|
|
177
|
+
* type holding exactly the runs' rows.
|
|
178
|
+
*
|
|
179
|
+
* @remarks
|
|
180
|
+
* The runs' rows are placed in their segments by the manifest's counts, which
|
|
181
|
+
* reads nothing, and every segment they touch is read once, several at a time,
|
|
182
|
+
* through the decoded segments the API process keeps; a joined read places
|
|
183
|
+
* each row's key in its primary segment by the primary's fences, and reads
|
|
184
|
+
* each such segment once.
|
|
185
|
+
*
|
|
186
|
+
* The answer is held to a page's bounds — {@link PAGE_MAX_LIMIT} entries, and
|
|
187
|
+
* the page byte budget by the average entry (and, joined, row) size: past
|
|
188
|
+
* them, it holds the entries it completed, in order, and says how many
|
|
189
|
+
* (`X-Page-Count`) of how many the runs hold (`X-Run-Entries`). The client asks
|
|
190
|
+
* again for the rest, the runs it named less the entries it has. Runs that are
|
|
191
|
+
* not ascending, disjoint and inside the collection are refused, as are more
|
|
192
|
+
* than {@link DATASET_BATCH_MAX} of them.
|
|
193
|
+
*
|
|
194
|
+
* @param storage - Storage backend
|
|
195
|
+
* @param repoPath - Repository identifier
|
|
196
|
+
* @param workspace - Workspace name
|
|
197
|
+
* @param treePath - The dataset's path
|
|
198
|
+
* @param request - The runs, the pin, and the index read through
|
|
199
|
+
* @param limits - The byte budget
|
|
200
|
+
* @returns The window, or a JSON refusal
|
|
201
|
+
*/
|
|
202
|
+
export declare function getDatasetRuns(storage: StorageBackend, repoPath: string, workspace: string, treePath: TreePath, request: DatasetRunsRequest, limits?: DatasetBatchLimits): Promise<Response>;
|
|
203
|
+
//# sourceMappingURL=dataset-batches.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataset-batches.d.ts","sourceRoot":"","sources":["../../../src/handlers/dataset-batches.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAoBH,OAAO,EAAwC,KAAK,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACxF,OAAO,EAAmD,KAAK,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAMjH,OAAO,EAA+C,KAAK,cAAc,EAAgB,MAAM,iBAAiB,CAAC;AAGjH,iFAAiF;AACjF,eAAO,MAAM,iBAAiB,QAAiB,CAAC;AAEhD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB,QAAmB,CAAC;AAEvD,2EAA2E;AAC3E,MAAM,WAAW,sBAAsB;IACrC,sEAAsE;IACtE,OAAO,EAAE,SAAS,cAAc,EAAE,CAAC;IACnC;4BACwB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;8DAC0D;IAC1D,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,iEAAiE;AACjE,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,eAAe,CACnC,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,sBAAsB,GAC9B,OAAO,CAAC,QAAQ,CAAC,CA2CnB;AAED;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,GAAG,iBAAiB,CAAC;AAEvE,qDAAqD;AACrD,MAAM,WAAW,iBAAiB;IAChC,4DAA4D;IAC5D,IAAI,EAAE,SAAS,MAAM,EAAE,CA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