(init: RunnerInit)
| 86 | private disposed = false; |
| 87 | |
| 88 | constructor(init: RunnerInit) { |
| 89 | this.db = init.db; |
| 90 | this.opts = { |
| 91 | cwd: init.cwd, |
| 92 | env: init.env, |
| 93 | logMaxBytes: init.logMaxBytes ?? DEFAULTS.logMaxBytes, |
| 94 | retentionMs: init.retentionMs ?? DEFAULTS.retentionMs, |
| 95 | sweepIntervalMs: init.sweepIntervalMs ?? DEFAULTS.sweepIntervalMs, |
| 96 | defaultTimeoutMs: init.defaultTimeoutMs ?? DEFAULTS.defaultTimeoutMs, |
| 97 | heartbeatIntervalMs: init.heartbeatIntervalMs ?? 0, |
| 98 | now: init.now ?? Date.now, |
| 99 | }; |
| 100 | initializeExecSchema(this.db); |
| 101 | if (init.resetSchema !== false) clearExecState(this.db); |
| 102 | } |
| 103 | |
| 104 | exec(command: string, options: ExecOptions = {}): ExecHandle { |
| 105 | if (this.disposed) throw new Error("runner disposed"); |
nothing calls this directly
no test coverage detected