fix(runner): enforce ownership and safe reconnects

Gate dispatch on reconciliation, retain cancellations across disconnects, and stop replaced clients. Guard the single-server runner topology with a database lease. Restage missing generated inputs, report signal exits, and bound generated-file cleanup.
This commit is contained in:
yiling
2026-11-18 12:04:29 +08:00
parent fd4dc211f8
commit a9281cbc75
23 changed files with 691 additions and 128 deletions
+10
View File
@@ -262,6 +262,16 @@ describe('Workflow E2E - read_asset', () => {
{ id: runner.id, teamId: team.id, name: runner.name, keyHash: hashRunnerKey(key) },
runnerSocket,
)
runnerService.handleMessage(
runner.id,
runnerSocket,
JSON.stringify({
type: 'reconcile',
environment: { platform: 'linux', shell: '/bin/sh' },
activeExecutions: [],
completedExecutions: [],
}),
)
const video = await createFileAsset(
project.id,