@kici-dev/orchestrator 0.1.19 → 0.1.21
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/agent/host-roster.d.ts +36 -1
- package/dist/agent/registry.d.ts +22 -0
- package/dist/app.d.ts +5 -0
- package/dist/cli/commands/source-manifest.d.ts +34 -0
- package/dist/cli/loopback-callback.d.ts +24 -0
- package/dist/cli/open-browser.d.ts +12 -0
- package/dist/cli.js +847 -205
- package/dist/cluster/coordinator.d.ts +5 -3
- package/dist/cluster/index.d.ts +2 -0
- package/dist/cluster/join-token.d.ts +27 -5
- package/dist/cluster/peer-auth-coordinator.d.ts +36 -0
- package/dist/cluster/peer-client.d.ts +34 -14
- package/dist/cluster/peer-credentials.d.ts +14 -2
- package/dist/cluster/peer-handler.d.ts +2 -2
- package/dist/cluster/rerouted-job-guard.d.ts +39 -0
- package/dist/db/migrations/043_rerouted_to_peer.d.ts +4 -0
- package/dist/db/migrations/044_check_mode.d.ts +4 -0
- package/dist/db/migrations/045_host_properties.d.ts +16 -0
- package/dist/db/migrations/046_join_token_consumed_by_instance.d.ts +17 -0
- package/dist/db/types.d.ts +33 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +1168 -33
- package/dist/lockfile-validate.d.ts +24 -0
- package/dist/pipeline/dispatch-matched-workflow.d.ts +53 -1
- package/dist/pipeline/test-pipeline.d.ts +7 -0
- package/dist/providers/github/manifest-form.d.ts +15 -0
- package/dist/providers/github/manifest.d.ts +78 -0
- package/dist/reporting/execution-tracker.d.ts +10 -1
- package/dist/routes/admin-sources.d.ts +11 -0
- package/dist/routes/admin.d.ts +8 -0
- package/dist/secrets/pg-secret-store.d.ts +9 -0
- package/dist/server.js +3052 -2004
- package/dist/stale-detector/stale-run-detector.d.ts +8 -0
- package/dist/standalone.js +2837 -1817
- package/dist/worker/in-memory-job-queue.d.ts +17 -0
- package/dist/worker/peer-outbox.d.ts +36 -0
- package/dist/worker/worker-outbox-relay.d.ts +13 -0
- package/dist/ws/inventory-api.d.ts +17 -0
- package/installer-image-digests.json +3 -3
- package/package.json +4 -4
- package/sbom.spdx.json +77 -128
|
@@ -25,6 +25,7 @@ import type { AgentRegistry } from '../agent/registry.js';
|
|
|
25
25
|
import type { HeldRunStore, ReleaseSignal } from '../environments/held-runs.js';
|
|
26
26
|
import type { StepApprovalBridge } from '../approvals/step-approval-bridge.js';
|
|
27
27
|
import type { AccessLogWriter } from '../audit/access-log.js';
|
|
28
|
+
import type { PeerRegistry } from '../cluster/peer-registry.js';
|
|
28
29
|
export interface StaleRunDetectorDeps {
|
|
29
30
|
db: Kysely<Database>;
|
|
30
31
|
executionTracker: ExecutionTracker;
|
|
@@ -32,6 +33,12 @@ export interface StaleRunDetectorDeps {
|
|
|
32
33
|
scalerManager?: ScalerManager;
|
|
33
34
|
dispatcher: Dispatcher;
|
|
34
35
|
registry: AgentRegistry;
|
|
36
|
+
/**
|
|
37
|
+
* Peer registry used to defer failing a job that was rerouted to a remote
|
|
38
|
+
* worker peer while that peer is still connected — its terminal status may
|
|
39
|
+
* still be replayed from the worker's durable outbox.
|
|
40
|
+
*/
|
|
41
|
+
peerRegistry: PeerRegistry;
|
|
35
42
|
/** Threshold in ms after which a job is considered stale. Default: heartbeatIntervalMs * multiplier */
|
|
36
43
|
staleThresholdMs: number;
|
|
37
44
|
/** How often to scan for stale jobs in ms. Default: 60_000 */
|
|
@@ -58,6 +65,7 @@ export declare class StaleRunDetector {
|
|
|
58
65
|
private readonly scalerManager?;
|
|
59
66
|
private readonly dispatcher;
|
|
60
67
|
private readonly registry;
|
|
68
|
+
private readonly peerRegistry;
|
|
61
69
|
private readonly staleThresholdMs;
|
|
62
70
|
private readonly scanIntervalMs;
|
|
63
71
|
private readonly heldRunStore?;
|