mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-02 05:54:44 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user