Send notification upon SQL failure

0

Hi all,

I have a stored procedure in aurora MySQL, this stored procedure is called from my aws glue job.

Is there any way to generate a notification if the stored procedure fails?

So i want to be notified if the invoked stored procedure fails

Thanks.

1개 답변
0

If the failure of your stored procedure leads to failure of Glue job, you can use Amazon EventBridge to detect the Glue job failure and send a notification to one of the available targets.

A sample Amazon EventBridge rule:

{
  "source": ["aws.glue"],
  "detail-type": ["Glue Job State Change"],
  "detail.state": ["FAILED"],
  "detail.message": [{
    "prefix": "JobName:MyJob and"
  }]
}

If your Glue job result doesn't rely on stored procedure result, you can then use Python AWS SDK to send an email notification.

AWS
지원 엔지니어
Manu_G
답변함 2년 전
AWS
전문가
검토됨 2년 전
  • This is not working. I need to apply this SNS setup for jobs starting with a specific prefix. There are around 30 jobs, how can I accomplish using this prefix attribute?

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠