elasticio / salesforce-component-v2

Apache License 2.0
2 stars 2 forks source link

Improve execution/error handling for the "Subscribe to platform events" trigger #68

Closed erroneous0ne closed 1 year ago

erroneous0ne commented 1 year ago

Description

Currently, only the first execution is relevant and contains logs, all others do nothing, it will increase logs and credentials retrieving numbers. We can only monitor errors for the flow by logs, logs will have a link to the execution which contains and will contain all future messages and errors. But since we store executions only for 30 days, and after 30 days the first execution will simply disappear we need to improve this trigger. It should work as all other triggers work, not store all messages/errors logs in one execution which becomes unavailable after some period of time. It should store each new message or error in a new execution, instead of creating a useless one.

Component Version

2.7.0

Definition of done

erroneous0ne commented 1 year ago

With this improvement please add additional logs to check a connection to the Salesforce. FYI @if0s

HannaTrotsenko commented 1 year ago

https://github.com/elasticio/salesforce-component-v2/releases/tag/2.7.1

erroneous0ne commented 1 year ago

Issue solved. Slack conversation.