Back to the room

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

Code Observatory / method

wait

codeintel.notify.UpstashRestNotifier.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 (2)
SymbolFileResolved by
_parsenotify.pysame file
_cmdnotify.pysame file
Inside (1)
SymbolFileResolved by
UpstashRestNotifiernotify.pysame file
codeintel.notify.UpstashRestNotifier.waitbackend/app/codeintel/notify.py, lines 100–109Open source
    def wait(self, timeout: int) -> str | None:        try:            result = self._cmd(["BLPOP", self.key, str(timeout)], timeout=timeout + 15)        except Exception as exc:            logger.warning("Upstash BLPOP failed (%s); falling back to DB polling", type(exc).__name__)            time.sleep(min(timeout, 5))            return None        if isinstance(result, list) and len(result) == 2:            return _parse(result[1])        return None

What the index recorded

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

Read it on GitHub at this commit