Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works
Code Observatory / function
job_ref
codeintel.runtime.job_ref
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 symbolsLoading
| Symbol | File | Resolved by |
|---|---|---|
| parse_repo_spec | git_source.py | through an import |
| Symbol | File | Resolved by |
|---|---|---|
| runtime | runtime.py | same file |
codeintel.runtime.job_refbackend/app/codeintel/runtime.py, lines 35–43Open source
def job_ref(repo_url: str) -> RepoRef: """Rebuild a RepoRef for a stored job. Local (``file://``) jobs can only have been created by the CLI — the API validates with ``allow_local=False`` — so allowing them here does not let API callers reach the worker's filesystem. """ settings = get_settings() return parse_repo_spec(repo_url, allowed_hosts=settings.CODEINTEL_ALLOWED_GIT_HOSTS, allow_local=True)What the index recorded
- Signature
def job_ref(repo_url: str) -> RepoRef:- File
backend/app/codeintel/runtime.py- Lines
- 35–43
- Parser
- python-ast
- Git blob
fed1898d663066d415ffd4749246534627ef28d6- Call sites
- 2 named, 2 resolved, 0 left unlinked
- Outside this subset
- 3 more edges reach code outside the graph shown here
