Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
Good day community,
I have some alerts with limit values on the template level
Should the user need to change these limits there is a service that dynamically changes the alert limits for a particular thing.
Therefore the alert values on a thing level are overwriting the template values (which is fine). These alerts do get fired. However after getting fired they are mean to execute subscriptions, which is not happening. The alerts are not executing the subscriptions that listen to the alert property.
Has anyone come across this issue before? Do you know why the subscriptions are getting ignored?
Regards,
Solved! Go to Solution.
It's potentially possible that your dynamic treatment of the alerts is breaking the link to the subscription.
Could test that out by setting a static alert into a subscription and see if that functions normally.
If so, this probably was an unanticipated use case and I would at least file a support ticket.
The only way then I think to make this work, might be to create a 'Dynamic Subscription' however these do not persist,
they are only in memory and can't be seen in Composer, only through services.
The perhaps more 'standard' route, might be to have DataChange into a Subscription which then triggers the Alert which then triggers the Alert subscription
Or DataChange into Subscription triggering the actions you would do on Alert.
It's potentially possible that your dynamic treatment of the alerts is breaking the link to the subscription.
Could test that out by setting a static alert into a subscription and see if that functions normally.
If so, this probably was an unanticipated use case and I would at least file a support ticket.
The only way then I think to make this work, might be to create a 'Dynamic Subscription' however these do not persist,
they are only in memory and can't be seen in Composer, only through services.
The perhaps more 'standard' route, might be to have DataChange into a Subscription which then triggers the Alert which then triggers the Alert subscription
Or DataChange into Subscription triggering the actions you would do on Alert.
hi @Pai. I tested the subscription on data change like you suggested and it did work.
I also realized that my subscriptions were getting executed by adding info loggers. I needed to configure my monitoring script log to show info level loggers. Next I identified an error within the service that the subscription was calling. This error is what prevented the system from displaying the desired output.
After fixing the error within the service that gets called when the subscription is executed, I was able to see some output.
Thank you for all the suggestions, they did help to debug.
Regards,
Just to rule it out as it may have happened to me already: Is the subscription enabled? I've heard of people who create subscriptions and wonder why they are not triggered - but they did not check the "enabled"-box when creating it