I am trying to subscribe one workflow to events emitted by another workflow, but my listener isn’t receiving any events.
I made an API call to subscribe the listener to the emitter and got a successful response with a subscription id.
I ran my emitter workflow and saw that it’s emitting events:
However, when I look at the listening workflow, it has not received any new events.
I was having an issue where my newly-created subscription would disappear from the list returned by the Get Current User’s Subscriptions API after a few minutes, but that might be a separate issue. It seems to be fixed now that I’ve changed my listening workflow’s source from a Scheduled source to a HTTP/Webhook source per this thread: Subscription listener keeps getting removed from workflow after deploy.
But I’m still stuck trying to figure out how to get my listening workflow to receive events from my emitting workflow. I double-checked the workflow IDs that I used for the subscription to make sure they were correct and I used the Get Workflow Emits API to confirm that my emitter is in fact emitting the events. Now I’m stumped.
I have testing workflows I can share if anyone wants to take a look and help me troubleshoot.