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

Method emit_after

dramatiq/broker.py:123–129  ·  view source on GitHub ↗
(self, signal: str, *args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

121 self.logger.critical("Unexpected failure in %s of %r.", signal, middleware, exc_info=True)
122
123 def emit_after(self, signal: str, *args: Any, **kwargs: Any) -> None:
124 signal = "after_" + signal
125 for middleware in reversed(self.middleware):
126 try:
127 getattr(middleware, signal)(self, *args, **kwargs)
128 except Exception:
129 self.logger.critical("Unexpected failure in %s of %r.", signal, middleware, exc_info=True)
130
131 def add_middleware(
132 self,

Callers 15

declare_actorMethod · 0.95
worker_processFunction · 0.80
startMethod · 0.80
stopMethod · 0.80
runMethod · 0.80
post_process_messageMethod · 0.80
runMethod · 0.80
process_messageMethod · 0.80
declare_queueMethod · 0.80
enqueueMethod · 0.80
declare_queueMethod · 0.80
enqueueMethod · 0.80

Calls

no outgoing calls

Tested by 5

stub_brokerFunction · 0.64
rabbitmq_brokerFunction · 0.64
redis_brokerFunction · 0.64