Refresh data warehouse batch jobs weekly in Redshift
Recipe ToolsMarketingDatabase
What it does
When the schedule triggers every Friday at noon, this automation runs three custom SQL batch jobs in Amazon Redshift. If any job fails, it retries once and sends email notifications so the team knows the outcome.
Who it's for
Data and analytics teams who need weekly data refreshes in Redshift without manual intervention.
How teams use this
Automate weekly data warehouse refresh
Run three batch SQL jobs every Friday without manual steps. The team receives email confirmation when the refresh completes or if an error occurs.
Retry failed jobs automatically
When a batch SQL job fails, the automation retries it once before notifying the team. This reduces false alerts from transient database issues.
Add a second refresh schedule
Set up a second clock trigger for Wednesday mornings so data refreshes twice weekly. Both schedules run the same three batch jobs and send the same email notifications.
Notify a Slack channel on errors
Include a Slack message step after the email so the team sees job failures in a dedicated channel. Email still goes out for record-keeping.
How it works
- Start on Friday at noon. Every Friday at 12:00 PM, the schedule triggers this automation to begin the weekly data refresh cycle in Amazon Redshift.
- Run three batch SQL jobs. Execute three custom SQL batch queries in Amazon Redshift to load and transform data records. If any job fails, the automation retries it once before proceeding.
- Send completion or error email. After all jobs finish or if an error persists after retry, send email notifications to the team with the job status and any error details.