MCPcopy Create free account
hub / github.com/StackStorm/st2 / dispatch_with_context

Method dispatch_with_context

st2tests/st2tests/mocks/sensor.py:80–83  ·  view source on GitHub ↗
(self, trigger, payload=None, trace_context=None)

Source from the content-addressed store, hash-verified

78 )
79
80 def dispatch_with_context(self, trigger, payload=None, trace_context=None):
81 item = {"trigger": trigger, "payload": payload, "trace_context": trace_context}
82 self.dispatched_triggers.append(item)
83 return item

Callers 2

dispatchMethod · 0.95
postMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected