mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-07-03 20:41:07 +02:00
ensure runs dir exists
This commit is contained in:
parent
2fdef8c559
commit
49e0a948f8
1 changed files with 2 additions and 0 deletions
|
|
@ -20,6 +20,8 @@ export class FSRunsRepo implements IRunsRepo {
|
||||||
idGenerator: IMonotonicallyIncreasingIdGenerator;
|
idGenerator: IMonotonicallyIncreasingIdGenerator;
|
||||||
}) {
|
}) {
|
||||||
this.idGenerator = idGenerator;
|
this.idGenerator = idGenerator;
|
||||||
|
// ensure runs directory exists
|
||||||
|
fsp.mkdir(path.join(WorkDir, 'runs'), { recursive: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
async appendEvents(runId: string, events: z.infer<typeof RunEvent>[]): Promise<void> {
|
async appendEvents(runId: string, events: z.infer<typeof RunEvent>[]): Promise<void> {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue