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.
@@ -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, { ...(0, run_logs_1.readLogs)(logs.events, logs.index, query, logs.truncated), names: logs.index.names() })
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 executor hears which service runs sleep with their volumes kept, and removes what it
1083
- // kept for any other (RunExecutor.restored)
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hammerkit",
3
3
  "description": "Containerized build tool with incremental caching that runs the same build file locally, in Docker and on Kubernetes.",
4
- "version": "2.1.0-next.13",
4
+ "version": "2.1.0-next.15",
5
5
  "keywords": [
6
6
  "build",
7
7
  "build-tool",