Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works
Code Observatory / function
next_queued_ids
codeintel.jobs.next_queued_ids
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
codeintel.jobs.next_queued_idsbackend/app/codeintel/jobs.py, lines 144–157Open source
def next_queued_ids(db: Session, limit: int = 10, model: JobModel = IngestionJob) -> list[uuid.UUID]: """Queued jobs that are due (retry backoff elapsed), oldest first.""" now = utcnow() return list( db.execute( select(model.id) .where( model.status == "queued", or_(model.available_at.is_(None), model.available_at <= now), ) .order_by(model.created_at) .limit(limit) ).scalars() )What the index recorded
- Signature
def next_queued_ids(db: Session, limit: int, model: JobModel) -> list[uuid.UUID]:- File
backend/app/codeintel/jobs.py- Lines
- 144–157
- Parser
- python-ast
- Git blob
54c9a5d84ee5feda5176c3e05d0aa9a7d46f6016- Call sites
- 10 named, 3 resolved, 7 left unlinked
- Outside this subset
- 5 more edges reach code outside the graph shown here
