This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.

⚠️ We've moved!

Hi there!

To reduce project dependency on 3rd party paid services the StackStorm TSC has decided to move the Q/A from this forum to Github Discussions. This will make user experience better integrated with the native Github flow, as well as the questions closer to the community where they can provide answers.

Use 🔗 Github Discussions to ask your questions.


I have created a Sensor and implemented its methods (init,setup,add_trigger,update_trigger etc).

I am taking parameters while creating the trigger.

  class_name: "PUBSUBSync"
  entry_point: ""
  description: "PUBSUB Synchronous Testing"
      name: "pubsub"
      description: "GCP PUBSUB"
        type: "object"
            type: "string"
            required: true
        type: "object"
            type: "object"
            type: "string"

When running the stackstorm i am getting this following error in rulesengine log

2021-03-09 12:07:30,539 139958497248912 DEBUG utils [-] No trigger in db for optigotest.event
2021-03-09 12:07:30,540 139958497248912 ERROR consumers [-] StagedQueueConsumer failed to process message: {‘trace_context’: None, ‘trigger’: ‘optigotest.event’, ‘payload’: {‘topic’: ‘sttest’, ‘message’: {‘key2’: ‘value2’, ‘key1’: ‘value1’}}}
Traceback (most recent call last):
File “/opt/stackstorm/st2/lib/python2.7/site-packages/st2common/transport/”, line 86, in process
response = self._handler.pre_ack_process(body)
File “/opt/stackstorm/st2/lib/python2.7/site-packages/st2reactor/rules/”, line 57, in pre_ack_process
File “/opt/stackstorm/st2/lib/python2.7/site-packages/st2reactor/container/”, line 45, in create_trigger_instance
raise StackStormDBObjectNotFoundError(‘Trigger not found for %s’ % trigger)
StackStormDBObjectNotFoundError: Trigger not found for optigotest.event
2021-03-09 12:07:34,078 139958497248912 DEBUG triggers [-] Looking up TriggerDB by id: 603b249329b1a881c6b43dcf
2021-03-09 12:07:34,124 139958498188816 DEBUG rules [-] Querying rules with trigger core.899b1edc-3454-480a-bac6-b9fdeea0dd4c

Is there any error in the way i implemented a Sensor ?

Thanks in Advance !!

Is the trigger optigotest.event defined?

It looks to me that you have defined a trigger .pubsub above?

Take a look at Sensors and Triggers — StackStorm 3.4.0 documentation to see how the trigger name in the trigger_types, relates to the trigger you want to dispatch in your sensor.