MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / retryLater

Method retryLater

src/index.ts:2016–2019  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2014 */
2015 private async runDeferredSynthesis(): Promise<void> {
2016 const retryLater = (): void => {
2017 if (!this.db.isOpen()) return;
2018 this.armDeferredSynthesis(parseSynthMinIntervalEnv(process.env.CODEGRAPH_SYNTH_MIN_INTERVAL_MS) ?? 1000);
2019 };
2020 try {
2021 await this.indexMutex.withLock(async () => {
2022 if (this.queries.getMetadata('synthesis_pending') !== '1') return;

Callers

nothing calls this directly

Calls 3

armDeferredSynthesisMethod · 0.95
parseSynthMinIntervalEnvFunction · 0.85
isOpenMethod · 0.80

Tested by

no test coverage detected