This pull request adds a new web route, /exports/create, which will create a CSV containing all user ID's failed ImportMutePromotions jobs. This can eventually be built out to support downloading other failed job types as well-- but for now the immediate need is to find all ID's that failed in our mass-deletion of Customer.io profiles last month.
How should this be reviewed?
👀
Any background context you want to provide?
This PR also adds a new parse_failed_job helper to DRY decoding the data buried in the payload field of the failed_jobs DB table.
What's this PR do?
This pull request adds a new web route,
/exports/create
, which will create a CSV containing all user ID's failedImportMutePromotions
jobs. This can eventually be built out to support downloading other failed job types as well-- but for now the immediate need is to find all ID's that failed in our mass-deletion of Customer.io profiles last month.How should this be reviewed?
👀
Any background context you want to provide?
This PR also adds a new
parse_failed_job
helper to DRY decoding the data buried in thepayload
field of thefailed_jobs
DB table.Relevant tickets
References Pivotal #177170418.
Checklist