MCPcopy
hub / github.com/Bogdanp/dramatiq / q_name

Function q_name

dramatiq/common.py:143–147  ·  view source on GitHub ↗

Returns the canonical queue name for a given queue.

(queue_name: str)

Source from the content-addressed store, hash-verified

141
142
143def q_name(queue_name: str) -> str:
144 """Returns the canonical queue name for a given queue."""
145 if queue_name.endswith(".DQ") or queue_name.endswith(".XQ"):
146 return queue_name[:-3]
147 return queue_name
148
149
150def dq_name(queue_name: str) -> str:

Callers 7

_add_consumerMethod · 0.85
declare_queueMethod · 0.85
enqueueMethod · 0.85
__next__Method · 0.85
build_message_keyMethod · 0.85

Calls

no outgoing calls

Tested by 1