Back to the room

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

Code Observatory / function

get_notifier

codeintel.notify.get_notifier

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 (3)
SymbolFileResolved by
Notifiernotify.pysame file
RedisNotifiernotify.pysame file
UpstashRestNotifiernotify.pysame file
Called by (2)
SymbolFileResolved by
submit_repositoryrouter.pythrough an import
system_statusrouter.pythrough an import
Inside (1)
SymbolFileResolved by
notifynotify.pysame file
codeintel.notify.get_notifierbackend/app/codeintel/notify.py, lines 112–120Open source
def get_notifier(settings) -> Notifier:    key = settings.INGESTION_NOTIFY_KEY    if settings.REDIS_URL:        return RedisNotifier(settings.REDIS_URL, key)    if settings.UPSTASH_REDIS_REST_URL and settings.UPSTASH_REDIS_REST_TOKEN:        return UpstashRestNotifier(            settings.UPSTASH_REDIS_REST_URL, settings.UPSTASH_REDIS_REST_TOKEN.get_secret_value(), key        )    return Notifier()

What the index recorded

Signature
def get_notifier(settings) -> Notifier:
File
backend/app/codeintel/notify.py
Lines
112–120
Parser
python-ast
Git blob
fc15788e6d2a98f2857ebab4c81c9c193abb5873
Call sites
4 named, 3 resolved, 1 left unlinked
Outside this subset
4 more edges reach code outside the graph shown here

Read it on GitHub at this commit