Back to the room

Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works

Code Observatory / function

classify_error

codeintel.jobs.classify_error

PINNED SOURCE Source and edges from the index at this commit. An execution appears only where one was recorded.

PHAROS at 975a38dMIT license

Around this symbol

Search all symbols

Loading

Called by (1)
SymbolFileResolved by
runjobs.pysame file
Inside (1)
SymbolFileResolved by
jobsjobs.pysame file
codeintel.jobs.classify_errorbackend/app/codeintel/jobs.py, lines 239–249Open source
def classify_error(exc: BaseException) -> tuple[str, bool]:    """(error_kind, retryable)."""    if isinstance(exc, RepoSpecError):        return "invalid_repository", False    if isinstance(exc, GitError):        return ("git_transient" if exc.retryable else "git_permanent"), exc.retryable    if isinstance(exc, EmbeddingUnavailable):        return "embedding_unavailable", True    if isinstance(exc, (ConnectionError, TimeoutError, OSError)):        return "transient", True    return "internal_error", False

What the index recorded

Signature
def classify_error(exc: BaseException) -> tuple[str, bool]:
File
backend/app/codeintel/jobs.py
Lines
239–249
Parser
python-ast
Git blob
54c9a5d84ee5feda5176c3e05d0aa9a7d46f6016
Call sites
1 named, 0 resolved, 1 left unlinked
Outside this subset
1 more edges reach code outside the graph shown here

Read it on GitHub at this commit