Back to the room

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

Code Observatory / method

wait

codeintel.notify.RedisNotifier.wait

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
_parsenotify.pysame file
Inside (1)
SymbolFileResolved by
RedisNotifiernotify.pysame file
codeintel.notify.RedisNotifier.waitbackend/app/codeintel/notify.py, lines 67–74Open source
    def wait(self, timeout: int) -> str | None:        try:            item = self._client.blpop([self.key], timeout=timeout)        except Exception as exc:            logger.warning("Redis BLPOP failed (%s); falling back to DB polling", type(exc).__name__)            time.sleep(min(timeout, 5))            return None        return _parse(item[1]) if item else None

What the index recorded

Signature
def wait(self, timeout: int) -> str | None:
File
backend/app/codeintel/notify.py
Lines
67–74
Parser
python-ast
Git blob
fc15788e6d2a98f2857ebab4c81c9c193abb5873
Call sites
6 named, 2 resolved, 4 left unlinked
Outside this subset
1 more edges reach code outside the graph shown here

Read it on GitHub at this commit