Skip to content

Add bin/oncall/email-deliveries script#8691

Merged
zachmargolis merged 6 commits intomainfrom
margolis-email-lookup-script
Jun 29, 2023
Merged

Add bin/oncall/email-deliveries script#8691
zachmargolis merged 6 commits intomainfrom
margolis-email-lookup-script

Conversation

@zachmargolis
Copy link
Contributor

@zachmargolis zachmargolis commented Jun 28, 2023

Why: Streamlines common oncall task of checking for email bounces

Example output:

> aws-vault exec prod-power -- ./bin/oncall/email-deliveries dd23dd99-4903-4ae0-99ff-70f909d6bf98 2128afdb-8d75-40cc-95ec-6cb062353448 362b7d1c-fff0-450a-8f28-face28bcf0c0

[ Querying logs ] ---=---=---=---=---=---=---=---=---=---=---=---=---=---=---=---=---=---=---=---=---=---=---=---=---=---=---=---=---=---=---= Time: 00:00:51
+--------------------------------------+-------------------------+--------------------------------------------------------------+----------------+
| user_id                              | timestamp               | message_id                                                   | events         |
+--------------------------------------+-------------------------+--------------------------------------------------------------+----------------+
| 362b7d1c-fff0-450a-8f28-face28bcf0c0 | 2023-06-28 22:47:54.381 | 01010189043119b5-4f4880b9-7cc7-48bd-929c-88d490621f1e-000000 | Send, Bounce   |
| 362b7d1c-fff0-450a-8f28-face28bcf0c0 | 2023-06-28 22:47:22.215 | 0101018904309cd1-52e87ec8-60a7-45ad-acf2-f50ed606dc65-000000 | Send, Bounce   |
| 362b7d1c-fff0-450a-8f28-face28bcf0c0 | 2023-06-28 22:46:48.396 | 0101018904301817-b56e94db-149e-4b14-aab6-a6b94000d21e-000000 | Send, Bounce   |
| dd23dd99-4903-4ae0-99ff-70f909d6bf98 | 2023-06-28 17:00:43.217 | 0101018902f33e15-4ea51412-a7ad-4ab8-aaff-9b9db9ebb1ae-000000 | Send, Delivery |
| dd23dd99-4903-4ae0-99ff-70f909d6bf98 | 2023-06-28 16:42:56.906 | 0101018902e2f8af-c7768a8b-20a8-43b7-a0ee-bea9ac61207c-000000 | Send, Delivery |
| 2128afdb-8d75-40cc-95ec-6cb062353448 | 2023-06-28 16:42:12.436 | 0101018902e24b07-c39bb395-1f0a-48de-8cea-a0ebd056c64c-000000 | Send, Delivery |
| 2128afdb-8d75-40cc-95ec-6cb062353448 | 2023-06-28 16:38:49.449 | 0101018902df32a5-787456ab-6269-4374-91ef-45fc201adf07-000000 | Send, Delivery |

I didn't add specs but I'm happy to if folks think this is worth landing! Update: Added them!

**Why**: Streamlines common oncall task of checking for email bounces
@zachmargolis zachmargolis requested a review from a team June 28, 2023 22:37
changelog: Internal, Scripts, Add script to debug email deliveries
@zachmargolis zachmargolis changed the title Add bin/oncall/missing-email script Add bin/oncall/email-deliveries script Jun 29, 2023
@zachmargolis zachmargolis merged commit 1d2a692 into main Jun 29, 2023
@zachmargolis zachmargolis deleted the margolis-email-lookup-script branch June 29, 2023 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants