To notify an external system about an unhandled exception in a batch job, the appropriate approach is to have the external system subscribe to a custom Platform Event that gets published using EventBus.publish(). When an exception occurs, the batch job can publish this event which the external system can listen for and respond to accordingly. References: Platform Events Developer Guide
最新のコメント (最新のコメントはトップにあります。)
This answer is D
BatchApexErrorEvent