Back to the room

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

Code Observatory / function

queue_learning

modules.code.router.queue_learning

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

Calls (2)
SymbolFileResolved by
_get_reporouter.pysame file
_learning_job_outrouter.pysame file
Inside (1)
SymbolFileResolved by
routerrouter.pysame file
modules.code.router.queue_learningbackend/app/modules/code/router.py, lines 345–354Open source
@router.post("/repositories/{repo_id}/learn", status_code=status.HTTP_202_ACCEPTED)def queue_learning(repo_id: uuid.UUID, db: Session = Depends(get_sync_db), _=Depends(require_admin)):    """Queue a learning job at the repository's indexed commit. The Mac's learning worker runs it."""    from ...learning.pipeline import submit_learning    repo = _get_repo(db, repo_id)    if not repo.last_commit_sha:        raise HTTPException(status_code=409, detail={"error": "not_indexed", "detail": "index the repository first"})    job, created = submit_learning(db, repo)    return {"created": created, "job": _learning_job_out(job)}

What the index recorded

Signature
def queue_learning(repo_id: uuid.UUID, db: Session, _):
File
backend/app/modules/code/router.py
Lines
345–354
Parser
python-ast
Git blob
d914024790aaafe7234adda557677b76e4ad73d5
Call sites
5 named, 3 resolved, 2 left unlinked
Outside this subset
1 more edges reach code outside the graph shown here

Read it on GitHub at this commit