mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-05 23:54:25 +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:
@@ -48,6 +48,8 @@ export type RotateRunnerKeyResponse = z.infer<typeof rotateRunnerKeyResponseSche
|
||||
// WebSocket Wire Protocol Schemas
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
export const RUNNER_REPLACED_CLOSE_CODE = 4000
|
||||
|
||||
export const runnerWelcomeMessageSchema = z.object({
|
||||
type: z.literal('welcome'),
|
||||
runnerId: z.string(),
|
||||
|
||||
Reference in New Issue
Block a user