Back to the room

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

Code Observatory / function

heartbeat

codeintel.jobs.heartbeat

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 (1)
SymbolFileResolved by
utcnowjobs.pysame file
Called by (3)
SymbolFileResolved by
_embedindexer.pyunique name
_syncindexer.pyunique name
runjobs.pysame file
Inside (1)
SymbolFileResolved by
jobsjobs.pysame file
codeintel.jobs.heartbeatbackend/app/codeintel/jobs.py, lines 165–167Open source
def heartbeat(db: Session, job_id: uuid.UUID, model: JobModel = IngestionJob) -> None:    db.execute(update(model).where(model.id == job_id).values(heartbeat_at=utcnow()))    db.commit()

What the index recorded

Signature
def heartbeat(db: Session, job_id: uuid.UUID, model: JobModel) -> None:
File
backend/app/codeintel/jobs.py
Lines
165–167
Parser
python-ast
Git blob
54c9a5d84ee5feda5176c3e05d0aa9a7d46f6016
Call sites
6 named, 3 resolved, 3 left unlinked
Outside this subset
3 more edges reach code outside the graph shown here

Read it on GitHub at this commit