Closed pheuberger closed 5 years ago
👋 @pheuberger
Using your configuration from above - I've managed set everything up and it works for me... which is less helpful for you :)
Can you include the status of the deployed triggers and rules? Here's what I get...
ibmcloud wsk trigger get mh-test_main_messagehub_testing
ok: got trigger mh-test_main_messagehub_testing
{
"namespace": "Developer Advocacy_Developer Advocacy",
"name": "mh-test_main_messagehub_testing",
"version": "0.0.1",
"limits": {},
"publish": false,
"rules": {
"Developer Advocacy_Developer Advocacy/mh-test_main_messagehub_testing_rule": {
"action": {
"name": "mh-test-dev-main",
"path": "Developer Advocacy_Developer Advocacy"
},
"status": "active"
}
}
}
ibmcloud wsk rule get mh-test_main_messagehub_testing_rule
ok: got rule mh-test_main_messagehub_testing_rule
{
"namespace": "Developer Advocacy_Developer Advocacy",
"name": "mh-test_main_messagehub_testing_rule",
"version": "0.0.1",
"status": "active",
"trigger": {
"name": "mh-test_main_messagehub_testing",
"path": "Developer Advocacy_Developer Advocacy"
},
"action": {
"name": "mh-test-dev-main",
"path": "Developer Advocacy_Developer Advocacy"
},
"publish": false
}
Closing due to lack of activity (unless you have anything new to add @pheuberger?)
I'm running serverless via IBM Cloud Functions. Here are the relevant parts from my
serverless.yml
file:Running the deploy script it indeed creates a trigger for this topic. However the function is not invoked when messages are published to this topic. In turn, when I create a trigger through the IBM Cloud Console and connect it to my function it works.
I noticed, serverless creates a
Custom Trigger
whereas creating a trigger via the Cloud Console gives you aMessage Hub
trigger. Might this have something to do with it?