|
1 | 1 | import * as Sentry from '@sentry/node'; |
2 | 2 | import { PrismaClient, Repo, RepoIndexingJobStatus, RepoIndexingJobType } from "@sourcebot/db"; |
3 | | -import { createLogger, Logger } from "@sourcebot/shared"; |
4 | | -import { env, RepoIndexingJobMetadata, repoIndexingJobMetadataSchema, RepoMetadata, repoMetadataSchema, getRepoPath } from '@sourcebot/shared'; |
| 3 | +import { createLogger, env, getRepoPath, Logger, RepoIndexingJobMetadata, repoIndexingJobMetadataSchema, RepoMetadata, repoMetadataSchema } from "@sourcebot/shared"; |
| 4 | +import { DelayedError, Job, Queue, Worker } from "bullmq"; |
5 | 5 | import { existsSync } from 'fs'; |
6 | 6 | import { readdir, rm } from 'fs/promises'; |
7 | | -import { DelayedError, Job, Queue, Worker } from "bullmq"; |
8 | 7 | import { Redis } from 'ioredis'; |
9 | | -import Redlock, { ExecutionError } from 'redlock'; |
10 | 8 | import micromatch from 'micromatch'; |
11 | | -import { WORKER_STOP_GRACEFUL_TIMEOUT_MS, INDEX_CACHE_DIR } from './constants.js'; |
| 9 | +import Redlock, { ExecutionError } from 'redlock'; |
| 10 | +import { INDEX_CACHE_DIR, WORKER_STOP_GRACEFUL_TIMEOUT_MS } from './constants.js'; |
12 | 11 | import { cloneRepository, fetchRepository, getBranches, getCommitHashForRefName, getLatestCommitTimestamp, getLocalDefaultBranch, getTags, isPathAValidGitRepoRoot, unsetGitConfig, upsertGitConfig } from './git.js'; |
13 | 12 | import { captureEvent } from './posthog.js'; |
14 | 13 | import { PromClient } from './promClient.js'; |
15 | 14 | import { RepoWithConnections, Settings } from "./types.js"; |
16 | | -import { getAuthCredentialsForRepo, getShardPrefix, groupmqLifecycleExceptionWrapper, measure, setIntervalAsync } from './utils.js'; |
17 | 15 | import { getAuthCredentialsForRepo, getShardPrefix, measure, setIntervalAsync } from './utils.js'; |
18 | 16 | import { cleanupTempShards, indexGitRepository } from './zoekt.js'; |
19 | 17 |
|
|
0 commit comments