fix(core): refresh model catalog every five minutes (#38142)
Co-authored-by: Victor Navarro <36263538+vimtor@users.noreply.github.com>
This commit is contained in:
parent
69d7c2add7
commit
023f76f6fc
1 changed files with 1 additions and 1 deletions
|
|
@ -651,7 +651,7 @@ export const layer = (options?: Options) => Layer.effect(
|
|||
|
||||
if (fetch && !process.argv.includes("--get-yargs-completions")) {
|
||||
// Schedule.spaced runs the effect once, then waits between completions.
|
||||
yield* Effect.forkScoped(refresh().pipe(Effect.repeat(Schedule.spaced("60 minutes")), Effect.ignore))
|
||||
yield* Effect.forkScoped(refresh().pipe(Effect.repeat(Schedule.spaced(ttl)), Effect.ignore))
|
||||
}
|
||||
|
||||
return Service.of({ get, refresh })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue