(id: string, metadata: unknown, runnerState: unknown, namespace: string)
| 43 | } |
| 44 | |
| 45 | getOrCreateMachine(id: string, metadata: unknown, runnerState: unknown, namespace: string): Machine { |
| 46 | const stored = this.store.machines.getOrCreateMachine(id, metadata, runnerState, namespace) |
| 47 | return this.refreshMachine(stored.id) ?? (() => { throw new Error('Failed to load machine') })() |
| 48 | } |
| 49 | |
| 50 | refreshMachine(machineId: string): Machine | null { |
| 51 | const stored = this.store.machines.getMachine(machineId) |
nothing calls this directly
no test coverage detected