Method
load
(
path: string,
logger: Logger,
opts: { logsDir?: string } = {},
)
Source from the content-addressed store, hash-verified
| 74 | ) {} |
| 75 | |
| 76 | static async load( |
| 77 | path: string, |
| 78 | logger: Logger, |
| 79 | opts: { logsDir?: string } = {}, |
| 80 | ): Promise<HeadlessTaskRegistry> { |
| 81 | const reg = new HeadlessTaskRegistry(path, logger, opts.logsDir ?? null) |
| 82 | await reg.read() |
| 83 | await reg.reconcile() |
| 84 | return reg |
| 85 | } |
| 86 | |
| 87 | private async read(): Promise<void> { |
| 88 | try { |
Callers
nothing calls this directly
Tested by
no test coverage detected