hammerkit 2.1.0-next.13 → 2.1.0-next.15
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/harness/sandbox-client.js +20 -0
- package/dist/kubernetes/follow-pod-logs.js +8 -5
- package/dist/kubernetes/kept-claims.js +26 -5
- package/dist/planner/work-item-status.js +12 -2
- package/dist/planner/work-runtime-kubernetes.js +250 -50
- package/dist/server/executor.js +22 -5
- package/dist/server/kubernetes-backend.js +160 -55
- package/dist/server/run-logs.js +25 -1
- package/dist/server/run-worker.js +22 -16
- package/dist/server/runs.js +409 -95
- package/dist/server/server.js +7 -3
- package/package.json +1 -1
package/dist/server/server.js
CHANGED
|
@@ -245,7 +245,10 @@ async function handleRuns(config, registry, definitions, sources, sandboxes, pla
|
|
|
245
245
|
const logs = (0, run_access_1.findReadableRun)(config, registry, principal, id) ? registry.logsOf(id) : undefined;
|
|
246
246
|
// with the tasks, services and the server's own lines (`hammerkit`) the log has
|
|
247
247
|
logs
|
|
248
|
-
? (0, http_2.send)(res, 200, {
|
|
248
|
+
? (0, http_2.send)(res, 200, {
|
|
249
|
+
...(0, run_logs_1.readLogs)(logs.events, logs.index, query, logs.truncated, logs.lostAfter),
|
|
250
|
+
names: logs.index.names(),
|
|
251
|
+
})
|
|
249
252
|
: (0, http_2.send)(res, 404, { error: 'not found' });
|
|
250
253
|
}
|
|
251
254
|
else {
|
|
@@ -1079,8 +1082,9 @@ async function startServer(config, environment, options = {}) {
|
|
|
1079
1082
|
.catch((e) => log(`the outputs of old runs could not be removed: ${e instanceof Error ? e.message : e}`));
|
|
1080
1083
|
const sweepingArtifacts = setInterval(sweepArtifacts, ARTIFACT_SWEEP_MS);
|
|
1081
1084
|
sweepingArtifacts.unref();
|
|
1082
|
-
// the
|
|
1083
|
-
// kept for any other
|
|
1085
|
+
// the runs the server before stopped resume, and the executor hears which service runs sleep
|
|
1086
|
+
// with their volumes kept and which runs resume, and removes what it kept for any other
|
|
1087
|
+
// (RunExecutor.restored)
|
|
1084
1088
|
await registry.restore();
|
|
1085
1089
|
void sweepArtifacts();
|
|
1086
1090
|
const proposals = new proposals_1.ProposalRegistry({
|
package/package.json
CHANGED