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.
asked 4 months ago12 views
1 Answers
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.
Relevant questions
fail a glue job if the called stored procedure fails
asked 4 months agooutput log for RDS stored procedure
asked 4 months agoCall a redshift stored procedure with dynamic parameter from boto3 lambda
Accepted Answerasked 2 months agoInvalid operation when creating Stored Procedure
asked 3 years agoProgrammatically Running a Stored Procedure in Redshift
asked 3 years agoCall a stored procedure in Redshift from Glue
Accepted Answerasked 3 years agoTrigger stored procedure upon glue job succe
asked 4 months agoPerformance of Redshift Stored Procedure is not upto mark
asked 10 days agocall a stored procedure from within glue job
Accepted Answerasked 4 months agoSend notification upon SQL failure
asked 4 months ago
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?